Sentry integration for ASGI frameworks.
Project description
sentry-asgi
Sentry integration for ASGI frameworks.
Installation:
pip install sentry-asgi
Usage:
from sentry_asgi import SentryMiddleware
import sentry_sdk
sentry_sdk.init(dsn=...)
app = ...
app = SentryMiddleware(app)
Notes
The SentryMiddleware will capture and log application exceptions just fine.
Explicitly logging events using the SDK from within views does not currently appear to work correctly.
It is recommended that frameworks populate an "endpoint" key in the ASGI scope, to indicate which view function or class should be logged by the middleware.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
sentry-asgi-0.1.2.tar.gz
(3.1 kB
view details)
File details
Details for the file sentry-asgi-0.1.2.tar.gz
.
File metadata
- Download URL: sentry-asgi-0.1.2.tar.gz
- Upload date:
- Size: 3.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.20.0 setuptools/40.5.0 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.7.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e7c08eccd279bd2d5e5f38e872cc0669e0d6f9115975ebd61af2faa7270985d4 |
|
MD5 | ba416a368efe895f37b71d7fa47b6a16 |
|
BLAKE2b-256 | 667a9e1cd9169c9323deda9137e6c8670053478266469f4a70d2fa415595b9de |