Add DD service name for active_support and active_record (#18060)

This commit is contained in:
Mac Siri 2022-07-11 10:14:42 -04:00 committed by GitHub
parent 75d6e60a95
commit 5579f3360c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -5,6 +5,8 @@ Datadog.configure do |c|
service_name = ENV.fetch("DD_SERVICE") { "rails-#{Rails.env}" }
c.tracing.instrument :rails, service_name: service_name
c.tracing.instrument :active_support, cache_service: "#{service_name}-cache"
c.tracing.instrument :active_record, service_name: "#{service_name}-db"
c.tracing.instrument :sidekiq, service_name: "#{service_name}-sidekiq"
c.tracing.instrument :concurrent_ruby
c.tracing.instrument :excon, service_name: "#{service_name}-excon"