Skip to main content

A RequestHandler mixin for sending exceptions to Sentry

Project description

A RequestHandler mixin for sending exceptions to Sentry

Version Downloads Status Coverage License

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

https://sprocketsmixinssentry.readthedocs.org

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

sprockets.mixins.sentry-1.1.1.tar.gz (7.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

sprockets.mixins.sentry-1.1.1-py2.py3-none-any.whl (7.5 kB view details)

Uploaded Python 2Python 3

File details

Details for the file sprockets.mixins.sentry-1.1.1.tar.gz.

File metadata

File hashes

Hashes for sprockets.mixins.sentry-1.1.1.tar.gz
Algorithm Hash digest
SHA256 c40b1b283578eb02ba67b85492f0b60601ec343b7ed09076713a73d6e425118d
MD5 b7671d7bc53f9124c2ea1d97d3162114
BLAKE2b-256 bedf7f0d934c03cfbc01319d3f5fc81b2ac7f61082721c9a1434dee5d26175b9

See more details on using hashes here.

File details

Details for the file sprockets.mixins.sentry-1.1.1-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for sprockets.mixins.sentry-1.1.1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 37313d5e94c8711f5ba6fc42ffcb9a4a1e8489321669fa40605820be89447e6c
MD5 15c549f523b844ae7a25abdefb157693
BLAKE2b-256 a892981cfe9ba49e73222d51351b2db44dfc50a444d6b5f3d392e57d32f99705

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page