Raven-Aiohttp-Redux - Asyncio Transport for the Sentry Python SDK with Python 3.10 support
A transport for the Sentry Python SDK which supports Python 3’s asyncio interface. For more information about Sentry and the python SDK, see our Python Documentation for framework integrations and other goodies.
Requirements
raven-python>=5.4.0
python>=3.4.2
aiohttp>=2.0
Usage
raven-aiohttp ships two asyncio based transports for raven.Client: AioHttpTransport and QueuedAioHttpTransport.
AioHttpTransport
All messages to the sentry server will be produced by “Fire And Forget”
Each new message spawns it owns asyncio.Task, amount of them is not limited
import asyncio
from raven import Client
from raven_aiohttp import AioHttpTransport
client = Client(transport=AioHttpTransport)
try:
1 / 0
except ZeroDivisionError:
client.captureException()
# graceful shutdown waits until all pending messages are send
loop = asyncio.get_event_loop()
loop.run_until_complete(client.remote.get_transport().close())
QueuedAioHttpTransport
All messages to the sentry server will be produced by queue system
When transport is created it spawns limited amount of asyncio.Task which sends messages one by one from internal asyncio.Queue
import asyncio
from functools import partial
from raven import Client
from raven_aiohttp import QueuedAioHttpTransport
client = Client(transport=partial(QueuedAioHttpTransport, workers=5, qsize=1000))
try:
1 / 0
except ZeroDivisionError:
client.captureException()
# graceful shutdown waits until internal queue is empty
loop = asyncio.get_event_loop()
loop.run_until_complete(client.remote.get_transport().close())
Resources
IRC Channel (irc.freenode.net, #sentry)
Metadata
Release files for raven-aiohttp-redux 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| raven-aiohttp-redux-0.1.0.tar.gz | 5.8 kB | Without provenance | Details for raven-aiohttp-redux-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| raven_aiohttp_redux-0.1.0-py2.py3-none-any.whl | Python 3, Python 2 | none | any | Details for raven_aiohttp_redux-0.1.0-py2.py3-none-any.whl |
Total release size: 11.1 kB
Release files / raven-aiohttp-redux-0.1.0.tar.gz
| Download URL | raven-aiohttp-redux-0.1.0.tar.gz |
|---|---|
| Size | 5.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a5c23e4ad9a0978bff6df3830c5ff3053d177448fc9281a1fd1c73f3074ffed4
|
|
BLAKE2b-256 checksum How to use checksums |
d08d8888103b0d2ffa40a7e6f7511a6c36a4686012db09461190f2f0a91271ca
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.10.8
|
Release files / raven_aiohttp_redux-0.1.0-py2.py3-none-any.whl
| Download URL | raven_aiohttp_redux-0.1.0-py2.py3-none-any.whl |
|---|---|
| Size | 5.3 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
900d090143d9ad95d184d7756c43e3a1aa462da90c9612865a3dc558e4cbee55
|
|
BLAKE2b-256 checksum How to use checksums |
46471bf7570a51f2f83c3c3538bb89e96a19d103be9e8c26955bb826635d1317
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.10.8
|
Security for raven-aiohttp-redux 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.