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.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | cf5587019bbe2b152be8c2050a578e9c21d8c8523099f424c3cd52ee9b4f4ff1 |
|
MD5 | 0a96356e551ee55899e23bbd0d79556f |
|
BLAKE2b-256 | 49f9eca94f6fae53f35098ef20e46a4aa258be40cb0fc99a7a302f1ae2d06bfb |
Close
Hashes for sprockets.mixins.sentry-1.1.0-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6cf7f04deb72dec0ab506a10ddbd1e3bfcb824da2f33a02b088d6ee7ca01c885 |
|
MD5 | 2f801f47efa6db5e3f73c0e5e1a329a7 |
|
BLAKE2b-256 | ca7ec8484289a2378a45ed5a9784eb6eac937dce59f9aa2ef332933616f0bbfa |