From 799e1d8780675206b7b2130f232faee6e33ff8cd Mon Sep 17 00:00:00 2001 From: Martin Fenner Date: Wed, 19 Feb 2020 13:26:55 +0100 Subject: [PATCH] configure different host for datadog tracer. #420 --- config/initializers/datadog-tracer.rb | 1 + config/initializers/datadog.rb | 8 -------- 2 files changed, 1 insertion(+), 8 deletions(-) delete mode 100644 config/initializers/datadog.rb diff --git a/config/initializers/datadog-tracer.rb b/config/initializers/datadog-tracer.rb index 50ec6b73f..1fb632066 100644 --- a/config/initializers/datadog-tracer.rb +++ b/config/initializers/datadog-tracer.rb @@ -2,4 +2,5 @@ Datadog.configure do |c| c.use :rails, service_name: "client-api" + c.tracer hostname: "datadog.local", enabled: Rails.env.production? end diff --git a/config/initializers/datadog.rb b/config/initializers/datadog.rb deleted file mode 100644 index 327f52afa..000000000 --- a/config/initializers/datadog.rb +++ /dev/null @@ -1,8 +0,0 @@ -# frozen_string_literal: true - -# require "ddtrace" - -# Datadog.configure do |c| -# # This will activate auto-instrumentation for Rails -# c.use :rails, service_name: "client-api" -# end