Remove NewRelic integration.

Remove the NewRelic integration in preparation for migrating to Elastic APM instead.
This commit is contained in:
evazion
2022-04-11 01:09:36 -05:00
parent 05261bf6d7
commit 98b313f8de
11 changed files with 20 additions and 66 deletions

View File

@@ -1,15 +0,0 @@
if Danbooru.config.new_relic_license_key.present?
require "new_relic/control"
# https://github.com/newrelic/newrelic-ruby-agent/blob/1ef4082fe97fd19aeccb3f392a44ef3becae66d3/lib/newrelic_rpm.rb#L40
# https://github.com/newrelic/newrelic-ruby-agent/blob/1ef4082fe97fd19aeccb3f392a44ef3becae66d3/lib/new_relic/agent.rb#L349
NewRelic::Control.instance.init_plugin(
app_name: Danbooru.config.canonical_app_name,
license_key: Danbooru.config.new_relic_license_key,
log_level: Danbooru.config.debug_mode ? "debug" : "error",
#log: Rails.logger,
"rake.tasks": ["maintenance:.*"],
"browser_monitoring.auto_instrument": false,
config: Rails.application.config,
)
end