Closed thibautd closed 9 months ago
@thibautd Thanks for reporting this. This seems to be due to some dependency importing a module that is not an ordinary ModuleType
object, and that does not support weak references. We try to track the lifetime of modules in case they are ever unloaded and later re-loaded, and use a weak reference to prevent holding on to old references, to prevent a potential memory leak. I'm looking into a way of handling non-ModuleType
objects whilst keeping the memory safeguards in place. I'll hopefully have a fix for this soon 🤞
Summary of problem
When DD_DYNAMIC_INSTRUMENTATION_ENABLED is true, our Celery workers are not able to execute any tasks.
Which version of dd-trace-py are you using?
2.3.0
Which version of pip are you using?
pip 23.3.1, setuptools 68.0.0 and wheel 0.41.3
Which libraries and their versions are you using?
How can we reproduce your problem?
I don't know :-(
What is the result that you get?
Here is the exception we get in our workers: