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.4.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | d65874872aedd6a75dd08649c79268cc85a32cec965b5c41c6161b836a6f12f4 |
|
MD5 | a962abaedb6d4010b2f38d9647e64f75 |
|
BLAKE2b-256 | 6b5d13004de4e21628ad55062ea1289654baf29986f952beee4b5a2ebc2a0eb3 |
Close
Hashes for sprockets.mixins.sentry-0.4.0-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 74f3ce1245c5225eddbafad5454939df504a372c6756600d8beb02035a2ca6fc |
|
MD5 | 85f06ccca23784cfce7f133ac261b4a3 |
|
BLAKE2b-256 | 47193117a4fb38def3514dabd4d3cc41cfc112ab84b849c24ce0149804236264 |