Skip to content

Commit 27b8d12

Browse files
committed
use ddtrace.auto since patch_all is being deprecated
1 parent e40f4a8 commit 27b8d12

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

Diff for: datadog_lambda/patch.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111

1212
from wrapt import wrap_function_wrapper as wrap
1313
from wrapt.importer import when_imported
14-
from ddtrace import patch_all as patch_all_dd
1514

1615
from datadog_lambda.tracing import (
1716
get_dd_trace_context,
@@ -33,7 +32,7 @@ def patch_all():
3332
_patch_for_integration_tests()
3433

3534
if dd_tracing_enabled:
36-
patch_all_dd()
35+
import ddtrace.auto # noqa: F401
3736
else:
3837
_patch_http()
3938
_ensure_patch_requests()

0 commit comments

Comments
 (0)