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)

posted @ 2020-08-05 16:12  悠然采  阅读(475)  评论(0编辑  收藏  举报