Skip to main content

A RequestHandler mixin for sending exceptions to Sentry

Project description

A RequestHandler mixin for sending exceptions to Sentry

Version Status 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")

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-2.0.1.tar.gz (12.3 kB view details)

Uploaded Source

Built Distribution

sprockets.mixins.sentry-2.0.1-py2.py3-none-any.whl (7.2 kB view details)

Uploaded Python 2 Python 3

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

Hashes for sprockets.mixins.sentry-2.0.1.tar.gz
Algorithm Hash digest
SHA256 87de3ce23a1a13ef110347910e5abbdfb0a0141fd380c8b3c7e63fb05f3bef4e
MD5 e6aa8fd94f93f4c3cf4415593675c052
BLAKE2b-256 c0806aae4e624d7ecf9c82d62eca0e9e0da876b699af304ff0faf31d45ab8227

See more details on using hashes here.

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

Hashes for sprockets.mixins.sentry-2.0.1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 0cfb40e4ae6008c2f7c8a623431a87f83e93872433240e769611c2d65dc51b3c
MD5 7b2629167632a7467fc656f5eabe9cc2
BLAKE2b-256 df5bae61a1deaefcec3cc200efc59417c2933f9724285df9b86e02d387ac1065

See more details on using hashes here.

Supported by

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