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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file sprockets.mixins.sentry-1.1.1.tar.gz.
File metadata
- Download URL: sprockets.mixins.sentry-1.1.1.tar.gz
- Upload date:
- Size: 7.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c40b1b283578eb02ba67b85492f0b60601ec343b7ed09076713a73d6e425118d
|
|
| MD5 |
b7671d7bc53f9124c2ea1d97d3162114
|
|
| BLAKE2b-256 |
bedf7f0d934c03cfbc01319d3f5fc81b2ac7f61082721c9a1434dee5d26175b9
|
File details
Details for the file sprockets.mixins.sentry-1.1.1-py2.py3-none-any.whl.
File metadata
- Download URL: sprockets.mixins.sentry-1.1.1-py2.py3-none-any.whl
- Upload date:
- Size: 7.5 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
37313d5e94c8711f5ba6fc42ffcb9a4a1e8489321669fa40605820be89447e6c
|
|
| MD5 |
15c549f523b844ae7a25abdefb157693
|
|
| BLAKE2b-256 |
a892981cfe9ba49e73222d51351b2db44dfc50a444d6b5f3d392e57d32f99705
|