Skip to content

Commit

Permalink
Revert "Remove NewRelic"
Browse files Browse the repository at this point in the history
This reverts commit 69b8f5e.
  • Loading branch information
ujh committed Dec 26, 2024
1 parent 5f98030 commit 7d77274
Show file tree
Hide file tree
Showing 5 changed files with 49 additions and 0 deletions.
1 change: 1 addition & 0 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ gem "jsbundling-rails"
gem "jsonapi-rails"
gem "jsonapi-serializer"
gem "kaminari"
gem "newrelic_rpm"
gem "nokogiri"
gem "paper_trail"
gem "pg"
Expand Down
2 changes: 2 additions & 0 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -335,6 +335,7 @@ GEM
net-smtp (0.5.0)
net-protocol
netrc (0.11.0)
newrelic_rpm (9.16.1)
nio4r (2.7.4)
nokogiri (1.18.0)
mini_portile2 (~> 2.8.2)
Expand Down Expand Up @@ -610,6 +611,7 @@ DEPENDENCIES
letter_opener
letter_opener_web
listen
newrelic_rpm
nokogiri
paper_trail
pg
Expand Down
1 change: 1 addition & 0 deletions config/honeybadger.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,3 +33,4 @@ exceptions:
- ActionDispatch::Http::Parameters::ParseError
- ActionController::BadRequest
- Redis::ConnectionError
- Rack::Timeout::RequestTimeoutException
44 changes: 44 additions & 0 deletions config/newrelic.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
#
# This file configures the New Relic Agent. New Relic monitors Ruby, Java,
# .NET, PHP, Python, Node, and Go applications with deep visibility and low
# overhead. For more information, visit www.newrelic.com.
#
# Generated December 16, 2020
#
# This configuration file is custom generated for NewRelic Administration
#
# For full documentation of agent configuration options, please refer to
# https://docs.newrelic.com/docs/agents/ruby-agent/installation-configuration/ruby-agent-configuration

common: &default_settings
# Your application name. Renaming here affects where data displays in New
# Relic. For more details, see https://docs.newrelic.com/docs/apm/new-relic-apm/maintenance/renaming-applications
app_name: Fountain Pen Companion

distributed_tracing:
enabled: true

# To disable the agent regardless of other settings, uncomment the following:
# agent_enabled: false

# Logging level for log/newrelic_agent.log
log_level: info

# Environment-specific settings are in this section.
# RAILS_ENV or RACK_ENV (as appropriate) is used to determine the environment.
# If your application has other named environments, configure them here.
development:
<<: *default_settings
app_name: Fountain Pen Companion (Development)

test:
<<: *default_settings
# It doesn't make sense to report to New Relic from automated test runs.
monitor_mode: false

staging:
<<: *default_settings
app_name: Fountain Pen Companion (Staging)

production:
<<: *default_settings
1 change: 1 addition & 0 deletions fly.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ release_command = 'bundle exec rake db:migrate db:seed'

[env]
BUNDLE_WITHOUT = "development:test"
NEW_RELIC_AGENT_ENABLED = "false"
RACK_ENV = "production"
RACK_TIMEOUT_SERVICE_TIMEOUT = "25"
RAILS_ENV = "production"
Expand Down

0 comments on commit 7d77274

Please sign in to comment.