feat: report Thermopylae errors to Mado #10
Loading…
Reference in a new issue
No description provided.
Delete branch "feat/mado-error-reporting"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
MADO_DSN; empty leaves tracking disabled. Preserve Fiber responses and report each panic once.Privacy
No request object, cookies, headers, query strings, bodies, IP addresses or user identity are attached. Request context is only method + matched route template. Error text is sent verbatim: future handlers must not put secrets into error messages. Tracing and breadcrumbs are disabled. Each server owns its reporter, without global SDK state.
Verification
go vet ./...— pass.go test ./...— pass.TestMado*tests — pass: envelope/auth compatibility, 500/panic deduplication and stack, excluded request secrets, expected-response suppression, disabled/invalid config, nonblocking delivery, janitor/log reporting.d23a225accepted an event emitted by Thermopylae and persisted it with stack frames, empty request/user payloads and one occurrence (isolated fixture database, not production).git diff --check— clean.go test -race ./...cannot start on this ARM host: ThreadSanitizer unsupported VMA range (47 vs 48), reproduced on unchanged base99b9c57. The existing PR CI rango vet ./...andgo test -race ./...successfully on this head (run 22, test job success; image publishing correctly skipped for the PR).Limitations / rollback
Returned Go errors show the capture-site stack unless they already carry a stack; panic stacks retain the panic site. Errors before reporter initialization (configuration/database opening) and directly written 5xx responses are not captured. Unset
MADO_DSNto disable. No production deployment or project provisioning is included in this PR.