Skip to content

Commit

Permalink
exclude from Datadog APM
Browse files Browse the repository at this point in the history
  • Loading branch information
robatwave committed Aug 17, 2019
1 parent 423d38c commit 7fa0071
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions watchman/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,13 @@ def _disable_apm():
newrelic.agent.ignore_transaction(flag=True)
except ImportError:
pass
# Datadog
try:
from ddtrace import tracer
from ddtrace.constants import MANUAL_DROP_KEY
tracer.current_span().set_tag(MANUAL_DROP_KEY)
except ImportError:
pass


def run_checks(request):
Expand Down

0 comments on commit 7fa0071

Please sign in to comment.