Skip to content

Commit 06ea45c

Browse files
fix(tracer): add importlib._bootstrap to keep modules (#15131)
## Description applications instrumented by ddtrace-run could fail to start with PEP420 style modules. This fixes that problem. ## Testing System tests with DataDog/system-tests#5641 ## Additional Notes APPSEC-59557
1 parent d9d5ddb commit 06ea45c

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

ddtrace/bootstrap/cloning.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@ def drop(module_name: str) -> None:
6969
"copyreg", # pickling issues for tracebacks with gevent
7070
"ddtrace",
7171
"concurrent",
72+
"importlib._bootstrap", # special import that must not be unloaded
7273
"typing",
7374
"_operator", # pickling issues with typing module
7475
"re", # referenced by the typing module
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
fixes:
3+
- |
4+
tracer: This fix resolves an issue where an application instrumented by ddtrace could crash at start.
5+
Fix compatibility with zope.event==6.0

0 commit comments

Comments
 (0)