asyncio
The AsyncioIntegration
integrates with applications doing concurrent code execution using Pythons asyncio module.
Install
Copied
pip install --upgrade 'sentry-sdk'
Configure
Add AsyncioIntegration()
to your integrations
list:
Copied
import sentry_sdk
from sentry_sdk.integrations.asyncio import AsyncioIntegration
sentry_sdk.init(
dsn="https://examplePublicKey@o0.ingest.sentry.io/0",
integrations=[
AsyncioIntegration(),
],
)
Behavior
- All unhandled exceptions in tasks will be captured
- Every executed Task will be instrumented and show up in the performance waterfall on Sentry.io
Supported Versions
- Python: 3.7+
Help improve this content
Our documentation is open source and available on GitHub. Your contributions are welcome, whether fixing a typo (drat!) to suggesting an update ("yeah, this would be better").
Our documentation is open source and available on GitHub. Your contributions are welcome, whether fixing a typo (drat!) to suggesting an update ("yeah, this would be better").
- Package:
- pypi:sentry-sdk
- Version:
- 1.18.0
- Repository:
- https://github.com/getsentry/sentry-python