Retrospective Logging
Demonstrates promote-on-error log capture. Logs are buffered per-request in memory. Only when a request fails are the logs persisted to SQLite for debugging.
Trigger errors below, then view the captured traces and simulate a support report.
Generate Errors
Each button triggers a real server error with contextual slog entries along the way. The per-request log buffer is promoted to the error trace store on failure. New traces appear below in real-time via SSE.
Captured Error Traces
Error traces persisted to SQLite. Click View Report to see the JSON payload that would be sent to support (email attachment, Teams webhook, ticket system, etc).
Buffer
Per-request slog buffer on ctxEvery slog call during a request is captured in a lightweight buffer. No shared locks on the hot path.
Promote
ErrorHandlerMiddlewareWhen a request returns an error, the buffer is persisted to SQLite with the full error chain and request metadata.
Report
IssueReporter interfaceWhen a user clicks Report Issue, the trace is retrieved and sent to the configured reporter (email, Teams, tickets).