feat: Sentry error monitoring for React frontend #98

Merged
chihlasm merged 2 commits from feat/sentry-frontend into main 2026-03-08 00:29:58 +00:00

2 Commits

Author SHA1 Message Date
Michael Chihlas
82d32d4789 feat: add Sentry error monitoring and tracing to FastAPI backend
- Install sentry-sdk[fastapi] with auto-enabled FastAPI + Anthropic
  integrations
- Init before app = FastAPI() with env-aware sample rates
  (100% dev, 20% prod)
- Filter /health endpoint from traces to reduce noise
- Add SENTRY_DSN to config settings

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-07 19:22:50 -05:00
Michael Chihlas
7631b843a9 feat: add Sentry error monitoring, tracing, and session replay
- Install @sentry/react and @sentry/vite-plugin
- Create instrument.ts with error monitoring, browser tracing (20% prod),
  and session replay (10% sessions, 100% on errors)
- Wire React 19 reactErrorHandler() on createRoot error hooks
- Wrap router with wrapCreateBrowserRouterV7 for route-aware transactions
- Configure sentryVitePlugin for source map uploads
- Add VITE_SENTRY_DSN to .env.example

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-07 19:16:10 -05:00