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")
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
File details
Details for the file sprockets.mixins.sentry-2.0.1.tar.gz
.
File metadata
- Download URL: sprockets.mixins.sentry-2.0.1.tar.gz
- Upload date:
- Size: 12.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 87de3ce23a1a13ef110347910e5abbdfb0a0141fd380c8b3c7e63fb05f3bef4e |
|
MD5 | e6aa8fd94f93f4c3cf4415593675c052 |
|
BLAKE2b-256 | c0806aae4e624d7ecf9c82d62eca0e9e0da876b699af304ff0faf31d45ab8227 |
File details
Details for the file sprockets.mixins.sentry-2.0.1-py2.py3-none-any.whl
.
File metadata
- Download URL: sprockets.mixins.sentry-2.0.1-py2.py3-none-any.whl
- Upload date:
- Size: 7.2 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0cfb40e4ae6008c2f7c8a623431a87f83e93872433240e769611c2d65dc51b3c |
|
MD5 | 7b2629167632a7467fc656f5eabe9cc2 |
|
BLAKE2b-256 | df5bae61a1deaefcec3cc200efc59417c2933f9724285df9b86e02d387ac1065 |