--- description: GlitchTip error tracking via Sentry SDKs — 500s only, no PHI alwaysApply: true --- # Error tracking (GlitchTip) Self-hosted GlitchTip at `https://errors.wixur.ir`. Apps use official Sentry SDKs (`@sentry/nestjs`, `@sentry/nextjs`) pointed at that DSN — not sentry.io. ## What to report - Backend: HTTP **500+** in `HttpExceptionFilter` only. Do **not** send `AppException` 4xx. - Frontend: render crashes (`error.tsx` / `global-error.tsx`) and axios **5xx / network** failures only. - No session replay. Scrub cookies, JWT, request bodies, emails. ## Config - Backend DSN: `SENTRY_DSN` in `backend.env` / `backend.staging.env` (runtime). - Frontend DSN: `NEXT_PUBLIC_SENTRY_DSN` baked at Docker build (Gitea var `NEXT_PUBLIC_SENTRY_DSN`). - Empty DSN = tracking off (local default).