sentry_sdk 错误日志监控 Flask配置
https://www.cnblogs.com/sui776265233/p/11348169.html
开源的平台,为小服务日志监控统一管理
pip install --upgrade sentry-sdk==0.10.2
pip install --upgrade 'sentry-sdk[flask]==0.16.2'
appFactory.py
import sentry_sdk
from sentry_sdk.integrations.flask import FlaskIntegration
sentry_sdk.init(
dsn="{key}.sentry.io/{project}",
integrations=[FlaskIntegration()]
)
app = Flask(name)