The app is now wired to GlitchTip with the Sentry SDKs
This commit is contained in:
@@ -40,7 +40,7 @@ QR + URL for **sent** cases; focus page `/lab-case/[token]`. Auth redirect via `
|
||||
|
||||
## API errors
|
||||
|
||||
Logical failures: `AppException(ErrorCode.X)` → `errors.X` in en/fa/nl. UI: `getUserFacingError`. Skill: `.cursor/skills/api-errors/SKILL.md`. Appointments/working hours: client IANA `timeZone` (never Node local `getHours()`).
|
||||
Logical failures: `AppException(ErrorCode.X)` → `errors.X` in en/fa/nl. UI: `getUserFacingError`. Unexpected 500s / client crashes: GlitchTip via Sentry SDKs (`SENTRY_DSN` / `NEXT_PUBLIC_SENTRY_DSN`). Skill: `.cursor/skills/api-errors/SKILL.md`. Appointments/working hours: client IANA `timeZone` (never Node local `getHours()`).
|
||||
|
||||
## Notifications (inbox + live tabs)
|
||||
|
||||
|
||||
20
.cursor/rules/error-tracking.mdc
Normal file
20
.cursor/rules/error-tracking.mdc
Normal file
@@ -0,0 +1,20 @@
|
||||
---
|
||||
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).
|
||||
Reference in New Issue
Block a user