mirror of
https://github.com/lingble/chatwoot.git
synced 2025-10-29 10:12:34 +00:00
fix: switch to datadog v2 gem (#12214)
# Pull Request Template ## Description - The `0.48` version of the `ddtrace` gem was out of date, which was causing the application to crash if `DD_AGENT_URL` was configured - Switch to `datadog` gem, which is the currently maintained gem from DD Ref: https://github.com/DataDog/dd-trace-rb/releases/tag/v2.0.0
This commit is contained in:
@@ -12,7 +12,7 @@ Bundler.require(*Rails.groups)
|
||||
# We rely on DOTENV to load the environment variables
|
||||
# We need these environment variables to load the specific APM agent
|
||||
Dotenv::Rails.load
|
||||
require 'ddtrace' if ENV.fetch('DD_TRACE_AGENT_URL', false).present?
|
||||
require 'datadog' if ENV.fetch('DD_TRACE_AGENT_URL', false).present?
|
||||
require 'elastic-apm' if ENV.fetch('ELASTIC_APM_SECRET_TOKEN', false).present?
|
||||
require 'scout_apm' if ENV.fetch('SCOUT_KEY', false).present?
|
||||
|
||||
|
||||
Reference in New Issue
Block a user