Sanic error handlert that integrates with Sentry
Project description
sanic-sentry-error-handler
==========================
.. image:: https://travis-ci.org/ekampf/sanic-sentry-error-handler.svg?branch=master
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')
==========================
.. image:: https://travis-ci.org/ekampf/sanic-sentry-error-handler.svg?branch=master
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')
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.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | f9e14e8ff56019fabc6c053651e4c5f0cc89e778bed2f68466e29f19cae93c0f |
|
MD5 | b50b71635a6bb9b32e428a71bbd0188f |
|
BLAKE2b-256 | bdb63bf512dcdbf6592705f66961a3826df2e98aae6ccc2d714d27f72740d3cb |