添加sentry、新增公告筛选功能

This commit is contained in:
fanbook-wangdage
2026-01-08 23:34:42 +08:00
parent d67e42b067
commit a4d95e4f90
4 changed files with 26 additions and 6 deletions

9
app.py
View File

@@ -1,5 +1,14 @@
from app.init import create_app
from app.config_loader import config_loader
import sentry_sdk
sentry_sdk.init(
dsn="https://d1cad1d2b442cf8431df3ee4bab925e0@o4507525750521856.ingest.us.sentry.io/4510623668830208",
# Add data like request headers and IP for users,
# see https://docs.sentry.io/platforms/python/data-management/data-collected/ for more info
send_default_pii=True,
traces_sample_rate=1.0,
)
# 创建应用实例
app = create_app()