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 #1258

Closed
wants to merge 5 commits into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion sentry_sdk/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -1136,9 +1136,11 @@ def _is_contextvars_broken():
pass

try:
import greenlet
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]])
if is_monkey_patched("thread") and version_tuple < (0, 5):
return True
except ImportError:
pass
Expand Down
Loading