We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
patch_all
1 parent 7bc8751 commit 5c80398Copy full SHA for 5c80398
datadog_lambda/wrapper.py
@@ -47,6 +47,10 @@
47
extract_http_status_code_tag,
48
)
49
50
+# Patch third-party libraries for tracing, must be done before importing any
51
+# handler code.
52
+patch_all()
53
+
54
if config.profiling_enabled:
55
from ddtrace.profiling import profiler
56
@@ -142,8 +146,6 @@ def __init__(self, func):
142
146
os.environ[DD_REQUESTS_SERVICE_NAME] = os.environ.get(
143
147
DD_SERVICE, "aws.lambda"
144
148
145
- # Patch third-party libraries for tracing
- patch_all()
149
150
# Enable LLM Observability
151
if config.llmobs_enabled:
0 commit comments