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-0.3.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | b8297199030686c77d48ddee4a24daa9ff339bdfff0d8bbb6663fb4aaab87101 |
|
MD5 | 005fa7d29f69ea3967a4f21c7e151ce5 |
|
BLAKE2b-256 | e66cf43769fed0ce7c6b6fae9e7aa9cf5b6ffe7a20548413cea259aea01b5278 |
Close
Hashes for sprockets.mixins.sentry-0.3.0-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7cc8c495296b9e482bebfeacd972102cfa1f5d5d01dc9110cf69d2df74f07682 |
|
MD5 | 9e4d25f87606ce4ec0f0748720398dc6 |
|
BLAKE2b-256 | 297809a412789da538291392942281d9dd53cd65af62d689fc37d65ce4ebdd56 |