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.1.2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | e783b844fac0b9b97ade0b9bbbecdb34bc05cd782045b5d36ce2037449517e0f |
|
MD5 | 78d24aa357d7ab1722fe695f7a41d127 |
|
BLAKE2b-256 | f2491b56b672a39f9a6833a2f2c694dfbd779e755c326ddf6fd9352bc484dddf |
Close
Hashes for sprockets.mixins.sentry-1.1.2-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d36d2b28e146fd79a3474a3d55aa10a85f591c9f484e27a5b234daf45cb02eba |
|
MD5 | bbab100d01b26224230488eb58714017 |
|
BLAKE2b-256 | 684b3654b54096ac5e6af18156c821671b497ea25952602e61c6ead7cefe7fec |