Dd-trace-rb: How to disable per environment?

Created on 13 Aug 2018  路  1Comment  路  Source: DataDog/dd-trace-rb

I can't find any documentation on how to disable the tracer per environment. For example, I only want it to run in production.

Most helpful comment

Found that I need this in my initializer, outside the configure block:

Datadog.tracer.enabled = Rails.env.production?

>All comments

Found that I need this in my initializer, outside the configure block:

Datadog.tracer.enabled = Rails.env.production?
Was this page helpful?
0 / 5 - 0 ratings