feat: add ?consumer= query param as highest-priority consumer identification#92
Merged
Conversation
Deploying with
|
| Status | Name | Latest Commit | Preview URL | Updated (UTC) |
|---|---|---|---|---|
| ✅ Deployment successful! View logs |
oddkit | f95b13b | Commit Preview URL Branch Preview URL |
Apr 15 2026, 01:45 AM |
This was referenced Apr 15, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Adds
?consumer=query parameter as the highest-priority consumer label resolution in oddkit telemetry.Why
Platforms like Claude.ai, ChatGPT, and ElevenLabs don't support custom HTTP headers in their MCP client configuration. Users on these platforms have no way to self-identify in telemetry today. This change lets them append
?consumer=yournameto their MCP server URL to get a meaningful consumer label instead of falling back tounknownor a generic User-Agent.Resolution chain (updated)
?consumer=query parameter (URL-level, highest priority) — NEWx-oddkit-clientheader (explicit)clientInfo.name(protocol-native)User-Agentheader (fallback)"unknown"(default)Companion
klappy/klappy.dev#96 updates the getting started article to document this option.
Verification
npx tsc --noEmitpasses with zero errorsworkers/src/telemetry.tsNote
Low Risk
Low risk: only changes telemetry consumer label attribution by adding a new highest-priority URL query parameter, with existing sanitization preserved.
Overview
Adds support for identifying the telemetry
consumer_labelvia a?consumer=query parameter on the request URL, taking highest priority over existing sources.Updates
parseConsumerLabel’s resolution order and emitsconsumer_source: "query-param"when the parameter is used; otherwise behavior remains the same (header → initializeclientInfo.name→User-Agent→unknown).Reviewed by Cursor Bugbot for commit f95b13b. Bugbot is set up for automated code reviews on this repo. Configure here.