raven-aiohttp
raven-aiohttp copied to clipboard
An aiohttp transport for raven-python
As aiohttp won't support setting up proxy from environment variables (https://github.com/aio-libs/aiohttp/issues/529), I've had to implement it as a transport option. Example usage: ```sentry_dsn = "https://public_key:[email protected]/1234?proxy=http%3A%2F%2Fproxy%3A3128"```
We are using `AioHttpTransport` when sending errors to Sentry. But (based on the documentation here "Each new message spawns it owns asyncio.Task, amount of them is not limited") if the...
Although the github project is called "raven-python", the PyPI package is called "raven".
Fixes #30
socket.AF_INET family is hardcoded in AioHttpTransportBase. This prevents raven from working on ipv6 nets: ```aiohttp.client_exceptions.ClientConnectorError: Cannot connect to host sentry-test.example.com:80 ssl:None [Name or service not known]```
I have a local test that checks if we really do send a message to Sentry after an error in one place. Mountebank is impersonating the Sentry server in that...
Environment (`python v3.6`): ``` aiohttp==2.2.5 raven==6.1.0 raven-aiohttp==0.6.0 sentry==8.22.0 ``` I tried using the `QueuedAioHttpTransport` for the transport and noticed that it generates errors if there are too many alerts firing....
It should be mutually exclusive to other options that are used inside `_client_session_factory`. User can pass it via `functools.partial`.
- Adjust the asyncio syntax to Python 3.11 - Remove support for Python 3.4 and 3.5 Unit tests results: ``` platform darwin -- Python 3.6.15, pytest-7.0.1, pluggy-1.0.0 plugins: asyncio-0.16.0, mock-3.6.1,...