From ab273566c48df097f6341324eb3d17a0b7b7090b Mon Sep 17 00:00:00 2001 From: Martin Fenner Date: Mon, 17 Feb 2020 19:12:56 +0100 Subject: [PATCH] only run apm in production #420 --- config/initializers/datadog-tracer.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/config/initializers/datadog-tracer.rb b/config/initializers/datadog-tracer.rb index 50ec6b73f..650dd7f9c 100644 --- a/config/initializers/datadog-tracer.rb +++ b/config/initializers/datadog-tracer.rb @@ -1,5 +1,6 @@ # frozen_string_literal: true Datadog.configure do |c| + c.enabled Rails.env.production? c.use :rails, service_name: "client-api" end