Skip to content

Diagnostics#8

Merged
altrup merged 6 commits into
mainfrom
diagnostics
Jul 21, 2026
Merged

Diagnostics#8
altrup merged 6 commits into
mainfrom
diagnostics

Conversation

@altrup

@altrup altrup commented Jul 21, 2026

Copy link
Copy Markdown
Owner

add basic diagnostic data

altrup and others added 5 commits July 20, 2026 21:57
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Route handlers are wrapped at registration to record usage and errors.
Usage counts once per Discord interaction, first key wins, so command
dispatches and redirect chains aren't double-counted. Error reports
store only the error's type, code, and stack frames; the free-text
message can embed IDs and server/channel names, which the privacy
policy forbids.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
The route event's trigger field says why a handler ran, so usage counts
at entry points only (commands in interactionCreate, embed clicks via
trigger "interaction") and the per-interaction dedupe state goes away.
Errors come from routeError with RouteInfo for the key, and
describeError unwraps the router's wrapper to the root cause.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@altrup altrup self-assigned this Jul 21, 2026
@altrup
altrup merged commit c7c8d8c into main Jul 21, 2026
6 checks passed
@altrup
altrup deleted the diagnostics branch July 21, 2026 03:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant