apm: disable Elastic APM initializer.
This caused problems because it effectively started the APM agent twice, causing the configuration to be ignored and duplicate events to be sent.
This commit is contained in:
@@ -1,10 +1,11 @@
|
||||
if Danbooru.config.elastic_apm_server_url.present?
|
||||
require "elastic_apm"
|
||||
|
||||
# https://www.elastic.co/guide/en/apm/agent/ruby/4.x/api.html#api-agent-start
|
||||
# https://www.elastic.co/guide/en/apm/agent/ruby/4.x/configuration.html
|
||||
ElasticAPM::Rails.start(
|
||||
server_url: Danbooru.config.elastic_apm_server_url,
|
||||
service_name: "Danbooru",
|
||||
)
|
||||
end
|
||||
#if Danbooru.config.elastic_apm_server_url.present?
|
||||
# require "elastic_apm"
|
||||
#
|
||||
# # https://www.elastic.co/guide/en/apm/agent/ruby/4.x/api.html#api-agent-start
|
||||
# # https://www.elastic.co/guide/en/apm/agent/ruby/4.x/configuration.html
|
||||
# ElasticAPM::Rails.start(
|
||||
# server_url: Danbooru.config.elastic_apm_server_url,
|
||||
# service_name: Danbooru.config.app_name,
|
||||
# service_version: Rails.application.config.x.git_hash,
|
||||
# )
|
||||
#end
|
||||
|
||||
Reference in New Issue
Block a user