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.io/en/latest/#version-history
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.2.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1795743e230d6b24759c442ba86d5247be79c7bf35a8a1a73c4c21cb0ac6fb06 |
|
MD5 | 0093fb95793721040e97838a9ab51c57 |
|
BLAKE2b-256 | d188c5ecaaa0f2dc6921c60df2430ec9ab55f6a733fa6d06a0870ea7e906e7a9 |
Close
Hashes for sprockets.mixins.sentry-1.2.0-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 69a62553f92e2d4c025d2291e86b404c4e2adc2d53e4ee49ac9cb26c01da1667 |
|
MD5 | 6a3ad9d53c38cc1b16e95ee800c2ebb3 |
|
BLAKE2b-256 | 9459fdffb7f9e28fcd6451491ddcb8fd2391a6afcc3ab7a211e3b870fa876264 |