From 7ff2c974c2715b6343090572f8d8e86ce3ac96e4 Mon Sep 17 00:00:00 2001 From: Martin Fenner Date: Wed, 19 Feb 2020 18:17:47 +0100 Subject: [PATCH] tweak amp configuration. #420 --- config/initializers/datadog-tracer.rb | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/config/initializers/datadog-tracer.rb b/config/initializers/datadog-tracer.rb index b24cb7ba2..73b1696c3 100644 --- a/config/initializers/datadog-tracer.rb +++ b/config/initializers/datadog-tracer.rb @@ -1,7 +1,11 @@ # frozen_string_literal: true Datadog.configure do |c| + c.tracer hostname: "datadog.local", enabled: Rails.env.production?, env: Rails.env c.use :rails, service_name: "client-api" c.use :elasticsearch - c.tracer hostname: "datadog.local", enabled: Rails.env.production?, env: Rails.env + c.use :active_record, analytics_enabled: false + c.use :aws, analytics_enabled: true + c.use :shoryuken, analytics_enabled: true + c.use :graphql, schemas: [LupoSchema] end