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
After running this code I won't get any sentry messages. If I comment monkey_patch. Then all works. I couldn't find anything about how to fix it. I saw sentry/celery page about contextvars this. But in this issue was confirmed that contextvars works fine with new greenlet. Here simple example how to reproduce it.
It is important to call monkey_patch() as early in the lifetime of the application as possible. Try to do it as one of the first lines in the main module.
The root issue is Python allowing execution of code on import. sentry_sdk uses this mechanism to initialize some global state.
You could say sentry is important enough for a workaround. Any contribution to search more specific issue or patch is warmly welcome.
eventlet version: 0.30.1
sentry_sdk version: 0.20.3
greenlet version: 1.0.0
After running this code I won't get any sentry messages. If I comment monkey_patch. Then all works. I couldn't find anything about how to fix it. I saw sentry/celery page about contextvars this. But in this issue was confirmed that contextvars works fine with new greenlet. Here simple example how to reproduce it.
Is there some workarounds? Or maybe I missing something?
The text was updated successfully, but these errors were encountered: