Monitoring & Performance
This project includes lightweight Real User Monitoring (RUM) and error reporting.
RUM
- Functions:
rumNav,rumMark,rumErrorinsrc/utils/perf.ts - Buffer flushes automatically (20 events or 5s)
- Configure endpoint via
VITE_RUM_ENDPOINT - Payload shape:
{ events: [ { type: 'nav'|'mark'|'error', name: string, value?: number, ts: number, meta?: object } ] }
Error Reporting
monitoringServiceinsrc/services/monitoringService.tscaptureswindow.errorandunhandledrejection- Configure endpoint via
VITE_ERROR_ENDPOINT - Breadcrumbs (last 20) are included with error submissions
Perf Logging
- Set
PERF_LOG=1to enable console perf logs fromsrc/utils/perf.ts