From 91e527614002377e4dfcf360522a6244fa530a37 Mon Sep 17 00:00:00 2001 From: Pau Perez Date: Fri, 18 Dec 2020 17:26:57 +0100 Subject: [PATCH] Enable request queuing tracking in Datadog Request queuing is critical to understand whether our app servers are able to cope with all the traffic or requests pile up in Nginx queues. I find the article https://www.speedshop.co/2015/07/29/scaling-ruby-apps-to-1000-rpm.html incredibly enlightening on this topic. Thanks @nateberkopec :heart:. This requires https://github.com/openfoodfoundation/ofn-install/pull/689. --- config/initializers/datadog.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/config/initializers/datadog.rb b/config/initializers/datadog.rb index c1265c7802..9ad16355fc 100644 --- a/config/initializers/datadog.rb +++ b/config/initializers/datadog.rb @@ -3,7 +3,9 @@ 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.request_queuing = true end end