Sanic error handlert that integrates with Sentry
Project description
sanic-sentry-error-handler
==========================
|Travis| |PyPI|
Sentry error handler for Sanic web server
Requirements
------------
- python >= 3.5
Installation
------------
**sanic-sentry-error-handler** should be installed using pip: ::
pip install sanic-sentry-error-handlert
Usage
-----
**SENTRY_DSN** - Sentry DSN for your application
To begin we'll set up a Sanic app:
.. code:: python
>>> from sanic import Sanic
>>> from sanic_sentry import SanicSentryErrorHandler
>>> app = Sanic(__name__)
>>> app.error_handler = SanicSentryErrorHandler('http://public:secret@example.com/1')
.. |Travis| image:: https://travis-ci.org/ekampf/sanic-sentry-error-handler.svg?branch=master
.. |PyPI| image:: https://badge.fury.io/py/sanic-sentry-error-handler.svg
:target: https://badge.fury.io/py/sanic-sentry-error-handler
==========================
|Travis| |PyPI|
Sentry error handler for Sanic web server
Requirements
------------
- python >= 3.5
Installation
------------
**sanic-sentry-error-handler** should be installed using pip: ::
pip install sanic-sentry-error-handlert
Usage
-----
**SENTRY_DSN** - Sentry DSN for your application
To begin we'll set up a Sanic app:
.. code:: python
>>> from sanic import Sanic
>>> from sanic_sentry import SanicSentryErrorHandler
>>> app = Sanic(__name__)
>>> app.error_handler = SanicSentryErrorHandler('http://public:secret@example.com/1')
.. |Travis| image:: https://travis-ci.org/ekampf/sanic-sentry-error-handler.svg?branch=master
.. |PyPI| image:: https://badge.fury.io/py/sanic-sentry-error-handler.svg
:target: https://badge.fury.io/py/sanic-sentry-error-handler
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
Close
Hashes for sanic-sentry-error-handler-0.1.2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | de56507ee1a53f3c32d7dcba1c6dc4fd614a6f3ca989574c94526b1f999c47d6 |
|
MD5 | 792b2eeb8ed6a566d0be8c61d9d0eee5 |
|
BLAKE2b-256 | 7c49404cd392ce40c92a06c7006c70e15825bc64191db6ed6f4b3778c26fa349 |