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