From 18ff007105c929ff67546e55875513d8d8150ae7 Mon Sep 17 00:00:00 2001 From: Martin Fenner Date: Wed, 19 Feb 2020 16:39:01 +0100 Subject: [PATCH] enable elasticsearch tracing --- config/initializers/datadog-tracer.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/config/initializers/datadog-tracer.rb b/config/initializers/datadog-tracer.rb index 1fb632066..b24cb7ba2 100644 --- a/config/initializers/datadog-tracer.rb +++ b/config/initializers/datadog-tracer.rb @@ -2,5 +2,6 @@ Datadog.configure do |c| c.use :rails, service_name: "client-api" - c.tracer hostname: "datadog.local", enabled: Rails.env.production? + c.use :elasticsearch + c.tracer hostname: "datadog.local", enabled: Rails.env.production?, env: Rails.env end