Last active
October 31, 2019 14:46
-
-
Save sri-teja/ad1c25a1a784c044a3f4a8a6c66d640d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## 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