skip to navigation
skip to content

sprockets.mixins.sentry 1.1.2

A RequestHandler mixin for sending exceptions to Sentry

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

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")
 
File Type Py Version Uploaded on Size
sprockets.mixins.sentry-1.1.2-py2.py3-none-any.whl (md5) Python Wheel py2.py3 2017-10-04 8KB
sprockets.mixins.sentry-1.1.2.tar.gz (md5) Source 2017-10-04 8KB