The Sanic integration adds support for the Sanic Web Framework. We support all LTS versions of Sanic starting from
0.8. Additionally, a Python version of 3.6 or greater is required.
sentry-sdk from PyPI:
$ pip install --upgrade sentry-sdk
If you're on Python 3.6, you also need the
$ pip install --upgrade aiocontextvars
To configure the SDK, initialize it with the integration before or after your app has been initialized:
import sentry_sdk from sentry_sdk.integrations.sanic import SanicIntegration from sanic import Sanic sentry_sdk.init( dsn="YOUR-GLITCHTIP-DSN-HERE", integrations=[SanicIntegration()] ) app = Sanic(__name__)