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 9b694f7 commit f9b4a4aCopy full SHA for f9b4a4a
datadog_lambda/wrapper.py
@@ -45,6 +45,10 @@
45
extract_http_status_code_tag,
46
)
47
48
+# Patch third-party libraries for tracing, must be done before importing any
49
+# handler code.
50
+patch_all()
51
+
52
profiling_env_var = os.environ.get("DD_PROFILING_ENABLED", "false").lower() == "true"
53
if profiling_env_var:
54
from ddtrace.profiling import profiler
@@ -223,8 +227,6 @@ def __init__(self, func):
223
227
os.environ[DD_REQUESTS_SERVICE_NAME] = os.environ.get(
224
228
DD_SERVICE, "aws.lambda"
225
229
226
- # Patch third-party libraries for tracing
- patch_all()
230
231
# Enable LLM Observability
232
if llmobs_env_var:
0 commit comments