To show how Sentry works in an example web app that uses Flask
- how to integrate the Sentry SDK into Flask (https://docs.sentry.io/platforms/python/flask/)
- trigger an error that gets sent as Event to Sentry.io Platform
app.pyhas multiple endpoints for showing different ways that errors are handled- Sentry Release cycle covered in
Makefile
pip install -r ./requirements.txt- Configure Sentry with your
DSN keyin app.py - Configure sentry-cli (is for creating Sentry releases) with your
SENTRY_AUTH_TOKENin Makefile or runexport SENTRY_AUTH_TOKEN=<your_auth_token>. Do the same forSENTRY_ORGandSENTRY_PROJECT - Check your Github repo is integrated into your Sentry organization.
- run make, which (Makefile) creates a Sentry release and runs Flask
make deploy
