Split out of #27. The backend reads SENTRY_DSN and does nothing with it. GO_HTTP_SERVER_CONVENTIONS.md in sneak/prompts (section 14, "Sentry Error Reporting") makes github.com/getsentry/sentry-go mandatory and says how it is wired.
Definition of done
When SENTRY_DSN is set, the backend initialises Sentry with release <appname>-<version>, adds the sentryhttp middleware with Repanic: true in the place the conventions give in the middleware order, and flushes Sentry (2 seconds) on shutdown. A DSN Sentry refuses stops the start with an error naming SENTRY_DSN. When it is empty, nothing is initialised and nothing leaves the container.
A test: with SENTRY_DSN empty no Sentry client exists; with a DSN pointing at a local test server, a handler panic reaches that server and the request still gets the existing 500 from the panic recovery.
README.md "Running under upaas" and backend/README.md list the setting and say that set, it sends errors to that Sentry project.
Dependency checked against the Go package defaults and pinned by go.sum.
Root make check and script/cibuild pass; TODO.md updated in the same commit; commit title ends (closes #N).
Model: opus-5-5
Split out of https://git.eeqj.de/sneak/netwatch/issues/27. The backend reads `SENTRY_DSN` and does nothing with it. `GO_HTTP_SERVER_CONVENTIONS.md` in `sneak/prompts` (section 14, "Sentry Error Reporting") makes `github.com/getsentry/sentry-go` mandatory and says how it is wired.
## Definition of done
- When `SENTRY_DSN` is set, the backend initialises Sentry with release `<appname>-<version>`, adds the `sentryhttp` middleware with `Repanic: true` in the place the conventions give in the middleware order, and flushes Sentry (2 seconds) on shutdown. A DSN Sentry refuses stops the start with an error naming `SENTRY_DSN`. When it is empty, nothing is initialised and nothing leaves the container.
- A test: with `SENTRY_DSN` empty no Sentry client exists; with a DSN pointing at a local test server, a handler panic reaches that server and the request still gets the existing 500 from the panic recovery.
- `README.md` "Running under upaas" and `backend/README.md` list the setting and say that set, it sends errors to that Sentry project.
- Dependency checked against the Go package defaults and pinned by `go.sum`.
- Root `make check` and `script/cibuild` pass; `TODO.md` updated in the same commit; commit title ends ` (closes #N)`.
Model: opus-5-5
clawbot
self-assigned this 2026-10-03 17:25:25 +02:00
Built in #107: with SENTRY_DSN set, a panic in a handler is reported to that Sentry project and the request still gets 500, and on shutdown Sentry gets up to 2 seconds to finish sending; a DSN Sentry refuses stops the start, naming SENTRY_DSN. With it empty, Sentry is never set up. Both READMEs list the setting.
Model: opus-5-5
Built in https://git.eeqj.de/sneak/netwatch/pulls/107: with `SENTRY_DSN` set, a panic in a handler is reported to that Sentry project and the request still gets 500, and on shutdown Sentry gets up to 2 seconds to finish sending; a DSN Sentry refuses stops the start, naming `SENTRY_DSN`. With it empty, Sentry is never set up. Both READMEs list the setting.
Model: opus-5-5
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Split out of #27. The backend reads
SENTRY_DSNand does nothing with it.GO_HTTP_SERVER_CONVENTIONS.mdinsneak/prompts(section 14, "Sentry Error Reporting") makesgithub.com/getsentry/sentry-gomandatory and says how it is wired.Definition of done
SENTRY_DSNis set, the backend initialises Sentry with release<appname>-<version>, adds thesentryhttpmiddleware withRepanic: truein the place the conventions give in the middleware order, and flushes Sentry (2 seconds) on shutdown. A DSN Sentry refuses stops the start with an error namingSENTRY_DSN. When it is empty, nothing is initialised and nothing leaves the container.SENTRY_DSNempty no Sentry client exists; with a DSN pointing at a local test server, a handler panic reaches that server and the request still gets the existing 500 from the panic recovery.README.md"Running under upaas" andbackend/README.mdlist the setting and say that set, it sends errors to that Sentry project.go.sum.make checkandscript/cibuildpass;TODO.mdupdated in the same commit; commit title ends(closes #N).Model: opus-5-5
clawbot referenced this issue2026-10-03 18:34:12 +02:00
Built in #107: with
SENTRY_DSNset, a panic in a handler is reported to that Sentry project and the request still gets 500, and on shutdown Sentry gets up to 2 seconds to finish sending; a DSN Sentry refuses stops the start, namingSENTRY_DSN. With it empty, Sentry is never set up. Both READMEs list the setting.Model: opus-5-5