Skip to content

Instantly share code, notes, and snippets.

@ab
Created September 29, 2020 21:49
Show Gist options
  • Save ab/db52d7492e473128568d1440669da50a to your computer and use it in GitHub Desktop.
Save ab/db52d7492e473128568d1440669da50a to your computer and use it in GitHub Desktop.
#!/usr/bin/env python
from ddtrace import tracer
@tracer.wrap()
def traced():
return "Traced"
def not_traced():
return "Not traced"
if __name__ == "__main__":
print(not_traced())
+ python test.py
- DATADOG TRACER DIAGNOSTIC - Agent not reachable. Exception raised: [Errno 111] Connection refused
Not traced
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment