A RequestHandler mixin for sending exceptions to Sentry
Project description
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")
Version History
Available at https://sprocketsmixinssentry.readthedocs.org/en/latest/
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for sprockets.mixins.sentry-1.0.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7123dccdb746aa4a3b2c42eeecf07be0a0efb2a9ba0268e9971769f91004a3b7 |
|
MD5 | 65dd42fbec2847cf89b56dd008ad8ca0 |
|
BLAKE2b-256 | 7ff253d09be20264aa0b5c15e64b51e4ae912741021ea8db2179b7932f9519b2 |
Close
Hashes for sprockets.mixins.sentry-1.0.0-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 11e859e197b73e70d06d254fcc97522ba3d623a90d45c2f5869db78071f33919 |
|
MD5 | 5fc0b9f1dc4ca06e51fded5f7dabf3df |
|
BLAKE2b-256 | 15e2c96e798ae9c8621230651e4c07859ad98b4adb05eebcf16f21dde7948279 |