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.
21 lines
329 B
Caddyfile
21 lines
329 B
Caddyfile
{
|
|
servers {
|
|
protocols h1 h2c
|
|
}
|
|
}
|
|
|
|
:8080 {
|
|
root * /app
|
|
|
|
# Enable on-the-fly compression for things not pre-compressed
|
|
encode zstd gzip
|
|
|
|
file_server {
|
|
precompressed br
|
|
}
|
|
|
|
try_files {path} /index.html
|
|
|
|
# Required for Sentry browser profiling (JS Self-Profiling API)
|
|
header Document-Policy "js-profiling"
|