mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-02-12 23:27:48 +00:00
Pass request_queuing setting to Rack middleware
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).
This commit is contained in:
@@ -3,7 +3,10 @@ if ENV['DATADOG_RAILS_APM']
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user