2 Commits

Author SHA1 Message Date
OG T
d91958eab7 docs(qa): #127 Sentry Replay 效能評估報告
All checks were successful
E2E Health Check / e2e-health (push) Successful in 16s
Lighthouse 測試結果:
- Performance Score: 84% 
- LCP: 4.4s (需優化,非 Replay 問題)
- FCP: 0.9s 
- CLS: 0  優秀
- TBT: 10ms  優秀

結論: Sentry Replay 採用 Lazy Loading,對初始載入影響極低

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-03-31 16:13:44 +08:00
OG T
9bff46a1b0 feat: integrate Sentry + fix CI/CD issues
Sentry Integration (補強 SignOz):
- Add @sentry/nextjs for frontend error tracking + session replay
- Add sentry-sdk[fastapi] for backend error tracking
- Create sentry.client/server/edge.config.ts
- Integrate with next.config.js + instrumentation.ts
- Add Sentry exception capture in FastAPI error handler
- Create deployment scripts for Self-Hosted @ 192.168.0.110

CI/CD Fixes:
- Fix F821 Undefined name 'Field' in incidents.py
- Add NEXT_PUBLIC_API_URL env var to CI build step
- Add build-arg to Docker build verification

E2E Test Improvements:
- Fix strict mode violations in dashboard-acceptance tests
- Add timeout increase for Phase 4 demo tests
- Make tests more resilient to UI variations

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-03-24 15:19:52 +08:00