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/history.html
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-0.1.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8e15b369a6e2c1943c3fe2018316ab894d8bec248a1503c02d992562aba9e39b |
|
MD5 | eed21b60826ff5e87f5431ffcc4f7176 |
|
BLAKE2b-256 | df7acca3f56d62401121e7075c090066495ff5b6ca5706d0bbc0fd2f74495bc5 |
Close
Hashes for sprockets.mixins.sentry-0.1.0-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 945d36cbd8b47b301ac677755785ceb3e11f9d61e46199d30e274f74b2af8d9a |
|
MD5 | c64c5c3655ff57413c8bc2249c99c44b |
|
BLAKE2b-256 | c1f905554e7d0a1ff02bb3d416cf2de3b95d800f8c84b3d9978ababd5793fd03 |