server: report HTTP handler panics to Sentry (closes #107) #184

Merged
clawbot merged 1 commits from issue-107-sentry into next 2026-10-01 23:09:39 +02:00
1 Commits
Author SHA1 Message Date
sneak 6e42bd4ed5 server: report HTTP handler panics to Sentry (closes #107)
check / check (push) Successful in 1m33s
DNSWATCHER_SENTRY_DSN was read but never used. This ports the Sentry
integration from gohttpserver with sentry-go v0.49.0. The server's start
hook calls sentry.Init when the DSN is set; a DSN Sentry cannot parse
fails the hook, so startup stops with the parse error. sentryhttp, with
Repanic, reports handler panics and passes them on to chi's Recoverer.
Shutdown sends queued reports once the HTTP server has stopped. The
client uses the older transport (DisableTelemetryBuffer): with the
default one, Flush can return before sending a report made just before
it. Client reports are off, so only panics are sent. The DSN is checked
at server start, not in config, so the config test is unchanged.
sentry-go raises several golang.org/x modules and moves go-spew and
go-difflib to untagged commits.

Model: opus-5-5
2026-10-01 20:56:19 +00:00