Skip to main content

Sentry integration to sanic web server

Project description

Sanic-Sentry
============

Sanic-Sentry -- Sentry integration to sanic web server.


Requirements
------------

- python >= 3.5

Installation
------------

**Sanic-Sentry** should be installed using pip: ::

pip install sanic-sentry

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 SanicSentry

>>> app = Sanic(__name__)
>>> app.config['SENTRY_DSN'] = 'http://public:secret@example.com/1'

To initialize plugin using initializer:

.. code:: python
>>> plugin = SanicSentry(app)

Or just like Flask app use 'init_app' to reverse dependencies:

.. code:: python
>>> plugin = SanicSentry()
>>> SanicSentry().init_app(app)

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

Uploaded Source

File details

Details for the file sanic-sentry-0.1.0.tar.gz.

File metadata

File hashes

Hashes for sanic-sentry-0.1.0.tar.gz
Algorithm Hash digest
SHA256 b910e400d876036089b03aba06a21a3646d5db2a3faf70dcb6f1a90bd9a43c43
MD5 49e1119123179c7a1d7ee0079a5dd09d
BLAKE2b-256 82a173268872f58e7c908f781a27581920906ab58f5ec11b9529fac6ea26edb3

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