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.2.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | ba04da35217e0111980a2f2afbe773fb83dca8a0ec9cebcddec9125830f36627 |
|
MD5 | f8ce4a71d1dbce2e870e5eef79c94be6 |
|
BLAKE2b-256 | b11b1df52d75813ba005a6b722ec1417ff35347a1abb1a9da4993b132699fe4f |
Close
Hashes for sprockets.mixins.sentry-0.2.0-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a4a91a32e1341f289ebc21e6f3fbdd984b390c5aad42cf844d05c3aa428f8aa2 |
|
MD5 | 6e9362209fb7563525a2f57d121b1043 |
|
BLAKE2b-256 | 2828059405494cb4ae73021595e68afa04291d44c394c028ac76305e46c4ddaf |