A RequestHandler mixin for sending exceptions to Sentry
Installation
sprockets.mixins.sentry is available on the Python Package Index and can be installed via pip or easy_install:
pip install sprockets.mixins.sentry
Documentation
Requirements
Example
This examples demonstrates how to use sprockets.mixins.sentry.
from sprockets.mixins import sentry
from tornado import web
class RequestHandler(sentry.SentryMixin, web.RequestHandler):
"""Requires a ``SENTRY_DSN`` environment variable is set with the
DSN value provided by sentry.
The Mixin should catch unhandled exceptions and report them to Sentry.
"""
def get(self, *args, **kwargs):
raise ValueError("This should send an error to sentry")
Release files for sprockets.mixins.sentry 2.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| sprockets.mixins.sentry-2.0.1.tar.gz | 12.3 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| sprockets.mixins.sentry-2.0.1-py2.py3-none-any.whl | Python 2, Python 3 | none | any | Details |
Total release size: 19.5 kB
Release files / sprockets.mixins.sentry-2.0.1.tar.gz
| Download URL | sprockets.mixins.sentry-2.0.1.tar.gz |
|---|---|
| Size | 12.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
87de3ce23a1a13ef110347910e5abbdfb0a0141fd380c8b3c7e63fb05f3bef4e
|
|
BLAKE2b-256 checksum How to use checksums |
c0806aae4e624d7ecf9c82d62eca0e9e0da876b699af304ff0faf31d45ab8227
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.1
|
Release files / sprockets.mixins.sentry-2.0.1-py2.py3-none-any.whl
| Download URL | sprockets.mixins.sentry-2.0.1-py2.py3-none-any.whl |
|---|---|
| Size | 7.2 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
0cfb40e4ae6008c2f7c8a623431a87f83e93872433240e769611c2d65dc51b3c
|
|
BLAKE2b-256 checksum How to use checksums |
df5bae61a1deaefcec3cc200efc59417c2933f9724285df9b86e02d387ac1065
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.1
|