Skip to main content

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

Release files for sprockets.mixins.sentry 2.0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for sprockets.mixins.sentry 2.0.1
File Size Uploaded
sprockets.mixins.sentry-2.0.1.tar.gz 12.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for sprockets.mixins.sentry 2.0.1
File Interpreter ABI Platform
sprockets.mixins.sentry-2.0.1-py2.py3-none-any.whl Python 2, Python 3 none any Details

Total release size: 19.5 kB

Release files / sprockets.mixins.sentry-2.0.1.tar.gz

Download URL sprockets.mixins.sentry-2.0.1.tar.gz
Size 12.3 kB
Tags Source
SHA-256 checksum
How to use checksums
87de3ce23a1a13ef110347910e5abbdfb0a0141fd380c8b3c7e63fb05f3bef4e
BLAKE2b-256 checksum
How to use checksums
c0806aae4e624d7ecf9c82d62eca0e9e0da876b699af304ff0faf31d45ab8227
Upload date
Uploaded using Trusted Publishing?
What is 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

Release files / sprockets.mixins.sentry-2.0.1-py2.py3-none-any.whl

Download URL sprockets.mixins.sentry-2.0.1-py2.py3-none-any.whl
Size 7.2 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
0cfb40e4ae6008c2f7c8a623431a87f83e93872433240e769611c2d65dc51b3c
BLAKE2b-256 checksum
How to use checksums
df5bae61a1deaefcec3cc200efc59417c2933f9724285df9b86e02d387ac1065
Upload date
Uploaded using Trusted Publishing?
What is 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

Release history Release notifications | RSS feed

This release

2.0.1 This release

2 release files

2.0.0

2 release files

1.2.0

2 release files

1.1.2

2 release files

1.1.1

2 release files

1.1.0

2 release files

1.0.0

2 release files

0.4.0

2 release files

0.3.0

2 release files

0.2.0

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page