Simplify ddtrace configuration (#17665)
This commit is contained in:
parent
e2c06429fd
commit
fc188a0759
2 changed files with 1 additions and 15 deletions
2
Gemfile
2
Gemfile
|
|
@ -23,7 +23,7 @@ gem "carrierwave", "~> 2.2" # Upload files in your Ruby applications, map them t
|
|||
gem "carrierwave-bombshelter", "~> 0.2" # Protect your carrierwave from image bombs
|
||||
gem "cloudinary", "~> 1.23" # Client library for easily using the Cloudinary service
|
||||
gem "counter_culture", "~> 3.2" # counter_culture provides turbo-charged counter caches that are kept up-to-date
|
||||
gem "ddtrace", "~> 0.54.2" # ddtrace is Datadog’s tracing client for Ruby.
|
||||
gem "ddtrace", "~> 0.54.2", require: "ddtrace/auto_instrument" # ddtrace is Datadog’s tracing client for Ruby.
|
||||
gem "devise", "~> 4.8" # Flexible authentication solution for Rails
|
||||
gem "devise_invitable", "~> 2.0.6" # Allows invitations to be sent for joining
|
||||
gem "dogstatsd-ruby", "~> 4.8" # A client for DogStatsD, an extension of the StatsD metric server for Datadog
|
||||
|
|
|
|||
|
|
@ -1,23 +1,9 @@
|
|||
Datadog.configure do |c|
|
||||
c.tracer env: Rails.env
|
||||
c.tracer enabled: ENV["DD_API_KEY"].present?
|
||||
c.tracer partial_flush: true
|
||||
c.tracer priority_sampling: true
|
||||
|
||||
c.use :concurrent_ruby
|
||||
c.use :excon, split_by_domain: true
|
||||
c.use :faraday, split_by_domain: true
|
||||
c.use :http, split_by_domain: false
|
||||
c.use :httpclient, split_by_domain: false
|
||||
c.use :httprb, split_by_domain: true
|
||||
c.use :rails
|
||||
|
||||
c.use :rest_client
|
||||
c.use :sidekiq
|
||||
|
||||
# Multiple Redis integrations to split Redis usage per-instance to
|
||||
# accommodate having a different Redis instance for each use case.
|
||||
|
||||
c.use :redis, service_name: "redis-rpush", describes: { url: ENV["REDIS_RPUSH_URL"] }
|
||||
c.use :redis, service_name: "redis-sessions", describes: { url: ENV["REDIS_SESSIONS_URL"] }
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue