Skip to content

Commit

Permalink
Add integration_tracing option (#11761)
Browse files Browse the repository at this point in the history
* Add integration_tracing option

* Fix tests
  • Loading branch information
coignetp authored Apr 1, 2022
1 parent 8ef107e commit 132d263
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion datadog_checks_base/datadog_checks/base/utils/tracing.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,9 @@ def wrapper(*args, **kwargs):


def traced_class(cls):
if os.getenv('DDEV_TRACE_ENABLED', 'false') == 'true':
if os.getenv('DDEV_TRACE_ENABLED', 'false') == 'true' or (
datadog_agent is not None and is_affirmative(datadog_agent.get_config('integration_tracing'))
):
try:
from ddtrace import patch_all, tracer

Expand Down

0 comments on commit 132d263

Please sign in to comment.