Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Patch eventlet under Sentry SDK #2464

Merged
6 changes: 5 additions & 1 deletion sentry_sdk/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -1159,9 +1159,13 @@ def _is_contextvars_broken():
pass

try:
import greenlet # type: ignore
from eventlet.patcher import is_monkey_patched # type: ignore

if is_monkey_patched("thread"):
version_tuple = tuple(
[int(part) for part in greenlet.__version__.split(".")[:2]]
)
szokeasaurusrex marked this conversation as resolved.
Show resolved Hide resolved
if is_monkey_patched("thread") and version_tuple < (0, 5):
return True
except ImportError:
pass
Expand Down