mirror of
https://github.com/SableClient/Sable.git
synced 2026-11-20 00:51:17 -08:00
Adds Sentry error tracking, performance monitoring, and session replay: - Environment-based sampling: production 10%, preview/dev 100% - Session replay with full privacy masking (text, media, inputs) - Hashed MXID as anonymous user ID with homeserver tag - Error rate limiting (50 events/session) to protect quota Performance spans and metrics across all critical paths: auth login, message send, timeline jump-load, per-event decryption, sliding sync cycles, key backup, store wipe, UTD failures, sync degradation, background notification clients, media uploads. Developer settings panel (Settings → General → Diagnostics & Privacy): error reporting toggle, session replay opt-in, breadcrumb category controls, debug log export. Crash page shows Sentry event ID with one-click feedback dialog. Bug report modal sends structured reports to Sentry feedback API with optional debug log attachment. CI: Sentry env vars injected into preview (100% sampling) and production (10% sampling) builds. Source maps uploaded via @sentry/vite-plugin.
nginx configuration
Insert wasm type into nginx mime.types file so they load correctly.
/etc/nginx/mime.types:
types {
..
application/wasm wasm;
..
}