Retrospective Logging

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).

Loading...

Buffer

Per-request slog buffer on ctx

Every slog call during a request is captured in a lightweight buffer. No shared locks on the hot path.

Promote

ErrorHandlerMiddleware

When a request returns an error, the buffer is persisted to SQLite with the full error chain and request metadata.

Report

IssueReporter interface

When a user clicks Report Issue, the trace is retrieved and sent to the configured reporter (email, Teams, tickets).