* Implement Datadog tracing agent and APM * if I had a nickle.... * more double quoted strings and rubocop fixes * put gems in the right order * Remove skylight to prevent initializer collisions with Datadog which cause infinite loops * remove skylight config files
15 lines
314 B
Ruby
15 lines
314 B
Ruby
require "ddtrace"
|
|
require "datadog/statsd"
|
|
|
|
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 :delayed_job
|
|
c.use :redis
|
|
c.use :rails
|
|
c.use :http
|
|
end
|
|
|
|
DataDogStatsClient = Datadog::Statsd.new
|