Summary
Integrate Sentry-protocol error tracking (default backend recommendation: GlitchTip self-host; Sentry self-hosted also supported). Captures recovered panics, slog.Error lines with an err attribute, plugin traps with WASM-specific tags, and front-end uncaught errors / rejected promises.
Design reference
- docs/10-observability.md §8 (Error tracking)
Acceptance criteria
Dependencies
#145, #186
Complexity
M
Summary
Integrate Sentry-protocol error tracking (default backend recommendation: GlitchTip self-host; Sentry self-hosted also supported). Captures recovered panics,
slog.Errorlines with anerrattribute, plugin traps with WASM-specific tags, and front-end uncaught errors / rejected promises.Design reference
Acceptance criteria
github.com/getsentry/sentry-gowired; enabled whenSENTRY_DSNorGLITCHTIP_DSNenv var setslog.HandlermirrorsERRORlines witherrattribute to Sentrytrace_idandrequest_idtagsplugin.slug,plugin.version,hook.name,wasm.trap.kind,wasm.fuel_used,wasm.fuel_remaining,wasm.memory_pagesplugin:<slug>:<trap-kind>(one issue per failure mode)query_namenot raw SQLbefore_sendhook re-runs PII redactor on exception extras(plugin, trap-kind)at 1/sattach_stacktrace: true,send_default_pii: false@sentry/nextjsfor both public + adminhidden-source-mapfor Next builds, uploaded then deleted from public bundleDependencies
#145, #186
Complexity
M