mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-25 20:46:48 +00:00
It turns out that this setting belongs to the Rack middleware Datadog comes with to track requests (Seee4c430a174/docs/GettingStarted.md (rack)). The way to pass this option to it is through `configuration[:rack]` where the `TraceMiddleware` will read it from. Seef57aefe60a/lib/ddtrace/contrib/rack/middlewares.rb (L215-L217)andf57aefe60a/lib/ddtrace/contrib/rack/middlewares.rb (L30-L43).
13 lines
307 B
Ruby
13 lines
307 B
Ruby
if ENV['DATADOG_RAILS_APM']
|
|
Datadog.configure do |c|
|
|
c.use :rails, service_name: 'rails'
|
|
c.use :delayed_job, service_name: 'delayed_job'
|
|
c.use :dalli, service_name: 'memcached'
|
|
|
|
c.analytics_enabled = true
|
|
c.runtime_metrics_enabled = true
|
|
|
|
c[:rack].request_queuing = true
|
|
end
|
|
end
|