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.
1 parent e9d26ec commit 8d6fbfdCopy full SHA for 8d6fbfd
datadog_lambda/wrapper.py
@@ -22,6 +22,7 @@
22
set_dd_trace_py_root,
23
create_function_execution_span,
24
)
25
+from ddtrace import patch_all as patch_all_dd
26
27
logger = logging.getLogger(__name__)
28
@@ -96,6 +97,8 @@ def __init__(self, func):
96
97
# When using dd_trace_py it will patch all the http clients for us,
98
# Patch HTTP clients to propagate Datadog trace context
99
patch_all()
100
+ else:
101
+ patch_all_dd()
102
logger.debug("datadog_lambda_wrapper initialized")
103
except Exception:
104
traceback.print_exc()
0 commit comments