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.io/en/latest/#version-history
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-2.0.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2832691ca3d7b8ece03fb2244f3b50bd055324b3b1e57d60d433e58904ae2e11 |
|
MD5 | 7c914f2f4264975a0a8e3dedf912ed6a |
|
BLAKE2b-256 | 84466af2803119abf11244ab3ddb71848edc3a727d38f60ce37f63ee655c1890 |
Close
Hashes for sprockets.mixins.sentry-2.0.0-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 41b0e0a945eb6f5c2cae7e22c9b71b9c94e2a1c249f55895dcebb42d637cba68 |
|
MD5 | c0b56c88ff6895f95336f93786c00e2d |
|
BLAKE2b-256 | 10273a7fbe216bc741262b23341711b397fd52c78e692a178c0ef00f6adff97f |