moira
f8a95c7417
feat: 集成 Sentry 错误监控 + 前端错误上报中继
后端:
- Cargo.toml 添加 sentry/sentry-actix/sentry-tracing (v0.48)
- main.rs 条件初始化 Sentry(SENTRY_DSN 环境变量控制)
- 新增 handlers/sentry.rs — POST /api/sentry/events 前端中继端点
- sentry-actix 全局中间件 + sentry-tracing 自动捕获 tracing::error!
- .env.example 添加 SENTRY_DSN / SENTRY_TRACES_SAMPLE_RATE 配置
前端:
- 新增 utils/sentryReporter.ts (批量上报/防抖/开发环境跳过)
- app.ts 全局错误处理接入 Sentry (wx.onError/onUnhandledRejection/onPageNotFound)
Sentry 未配置 DSN 时完全无操作,无性能开销
2026-05-14 10:12:09 +08:00
..
2026-04-19 00:14:22 +08:00
2026-05-13 17:20:31 +08:00
2026-04-19 00:14:22 +08:00
2026-04-19 00:38:13 +08:00
2026-04-24 16:13:49 +08:00
2026-05-14 10:12:09 +08:00
2026-05-13 17:20:31 +08:00
2026-05-14 10:12:09 +08:00
2026-04-15 13:18:43 +08:00
2026-05-11 13:38:41 +08:00
2026-05-13 17:20:31 +08:00