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 you can pass 'app' to __init__:

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

Or use `init_app` to reverse dependency:

.. code:: python
>>> plugin = SanicSentry()
>>> plugin.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.1.tar.gz (2.7 kB view details)

Uploaded Source

File details

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

File metadata

File hashes

Hashes for sanic-sentry-0.1.1.tar.gz
Algorithm Hash digest
SHA256 d7626973748182c33f24790979ae804d9d58c551202b1a6c61dc8b9659f70293
MD5 5cc3e6358cad33fd912896ff01d3c67d
BLAKE2b-256 88d46d7c6e5587548d7beba1ae34c04e55361259b762db93da3f946e71be1300

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