Skip to main content

Sanic error handlert that integrates with Sentry

Project description

.. image::

Sentry error handler for Sanic web server


- python >= 3.5


**sanic-sentry-error-handler** should be installed using pip: ::

pip install sanic-sentry-error-handlert

**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('')

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

sanic-sentry-error-handler-0.1.1.tar.gz (2.2 kB view hashes)

Uploaded source

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page