You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've encountered an issue when trying to instrument threading.Thread. Everything works fine until I try to use threading.Timer, which fails with a TypeError. I believe this is because Timer internally creates a new Thread which is not covered by the instrumentation.
TypeError: super(type, obj): obj must be an instance or subtype of type
I've tried to work around this by modifying the ThreadingInstrumentor to cover Timer as well, but this leads to other complications as Timer has a more complex implementation than Thread.
It would be great if the library could provide a way to instrument Timer without these issues, or at least document this limitation and provide some guidance on how to deal with it.
I've encountered an issue when trying to instrument
threading.Thread
. Everything works fine until I try to usethreading.Timer
, which fails with aTypeError
. I believe this is becauseTimer
internally creates a newThread
which is not covered by the instrumentation.Here's the minimal code to reproduce the issue:
And the error message:
TypeError: super(type, obj): obj must be an instance or subtype of type
I've tried to work around this by modifying the ThreadingInstrumentor to cover Timer as well, but this leads to other complications as Timer has a more complex implementation than Thread.
It would be great if the library could provide a way to instrument Timer without these issues, or at least document this limitation and provide some guidance on how to deal with it.
Thank you.
Originally posted by @NikulausRui in #1582 (comment)
The text was updated successfully, but these errors were encountered: