Skip to content

Instantly share code, notes, and snippets.

@sri-teja
Last active October 31, 2019 14:46
Show Gist options
  • Save sri-teja/ad1c25a1a784c044a3f4a8a6c66d640d to your computer and use it in GitHub Desktop.
Save sri-teja/ad1c25a1a784c044a3f4a8a6c66d640d to your computer and use it in GitHub Desktop.
## Reference: https://docs.sentry.io/platforms/python/flask/
## installation
## pip install --upgrade 'sentry-sdk[flask]==0.13.1'
## usage
import sentry_sdk
from sentry_sdk.integrations.flask import FlaskIntegration
sentry_sdk.init(
dsn="https://<key>@sentry.io/<id>",
integrations=[FlaskIntegration()]
)
app = Flask(__name__)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment