Skip to content

Commit c8e822c

Browse files
committed
fix: add concurrency docs
1 parent 3daedeb commit c8e822c

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

README.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,15 @@ breadcrumbs manually:
8888
"message": "hi"
8989
})
9090

91+
### Concurrency
92+
93+
* Sentry-Python currently does not support gevent-based setups.
94+
* On ``init``, Sentry-Python spawns a thread on its own. That means if you use
95+
``uwsgi``, you currently need to enable threads.
96+
* On Python 3.7, Sentry-Python supports and automatically uses ``ContextVars``.
97+
This should effectively enable Sentry-Python to work with ``asyncio`` under
98+
that Python version.
99+
91100
## Integrations
92101

93102
Head over to [the other pages](./docs/) to check out integrations, which use

sentry_sdk/utils.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -372,8 +372,6 @@ def to_string(value):
372372
except ImportError:
373373
from threading import local
374374

375-
_nothing = object()
376-
377375
class ContextVar(object):
378376
# Super-limited impl of ContextVar
379377

0 commit comments

Comments
 (0)