Skip to content

Commit 087b5e9

Browse files
committed
testing helper
1 parent d9d6551 commit 087b5e9

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

datadog_lambda/patch.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,14 @@ def patch_all():
3131

3232
if config.trace_enabled:
3333
patch_all_dd()
34+
# Todo: remove this for PR. This is just a testing helper
35+
# Manually patch the durable execution integration since it may not
36+
# be registered in the PyPI ddtrace's _monkey.py yet.
37+
try:
38+
from ddtrace import patch as _patch_dd
39+
_patch_dd(aws_durable_execution_sdk_python=True)
40+
except Exception:
41+
pass
3442
else:
3543
_patch_http()
3644
_ensure_patch_requests()

0 commit comments

Comments
 (0)