docbrown/config/initializers/datadog_apm.rb
rhymes 36786cf554
Rails 6: enable zeitwerk autoloader (#8766)
* More loading fixes

* Go back to OpenStruct

* Shuffle things around

* Remove obsolete patches and unneeded requires

* Disable config.add_autoload_paths_to_load_path

* Fix pre-require errors

* Config not reloader
2020-06-22 16:27:55 +02:00

13 lines
289 B
Ruby

Datadog.configure do |c|
c.tracer env: Rails.env
c.tracer enabled: Rails.env.production?
c.tracer partial_flush: true
c.tracer priority_sampling: true
c.use :elasticsearch
c.use :sidekiq
c.use :redis
c.use :rails
c.use :http
end
DatadogStatsClient = Datadog::Statsd.new