Skip to main content

Sanic-Sentry

Sanic-Sentry – Sentry integration to sanic web server.

https://badge.fury.io/py/sanic-sentry.svg https://travis-ci.org/serathius/sanic-sentry.svg?branch=master https://codecov.io/gh/serathius/sanic-sentry/branch/master/graph/badge.svg

Requirements

  • python >= 3.5

Installation

Sanic-Sentry should be installed using pip:

pip install sanic-sentry

Usage

To initialize plugin you can pass ‘app’ to __init__:

>>> from sanic import Sanic
>>> from sanic_sentry import SanicSentry
>>> app = Sanic(__name__)
>>> plugin = SanicSentry(app)

Or use init_app to reverse dependency:

>>> plugin = SanicSentry()
>>> plugin.init_app(app)

Optional parameters:

SENTRY_DSN - Sentry DSN for your application:

If not set raven will fallback to SENTRY_DSN environment variable. Not setting either will disable raven.

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

SENTRY_PARAMS - Configure advanced parameters for sentry:

Explained in https://docs.sentry.io/clients/python/advanced/

>>> app.config['SENTRY_PARAMS'] = {
...     "release": "myapp_v0.4",
...     "environment": "production",
... }

Metadata

Release files for sanic-sentry 0.1.7

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for sanic-sentry 0.1.7
File Size Uploaded Provenance Actions
sanic-sentry-0.1.7.tar.gz 3.2 kB Without provenance Details for sanic-sentry-0.1.7.tar.gz

Release files / sanic-sentry-0.1.7.tar.gz

Download URL sanic-sentry-0.1.7.tar.gz
Size 3.2 kB
Tags Source
SHA-256 checksum
How to use checksums
3231d71a5537c988758f7e8148d3db1ed654d730bb113760b31a204bb1f7da3d
BLAKE2b-256 checksum
How to use checksums
d48931a8396c28d5112e805e60d5ca9f18a5b33d028d076b38bbd1b2e3a1df7d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for sanic-sentry 0.1.7

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page