feat(toolbox_core): enable telemetry_attribute for SQLCommenter#634
Open
AjmeraParth132 wants to merge 2 commits into
Open
feat(toolbox_core): enable telemetry_attribute for SQLCommenter#634AjmeraParth132 wants to merge 2 commits into
AjmeraParth132 wants to merge 2 commits into
Conversation
Contributor
|
/gcbrun |
anubhav756
approved these changes
Apr 15, 2026
40a4b32 to
eca4c1c
Compare
Contributor
|
/gcbrun |
3 similar comments
Contributor
|
/gcbrun |
Contributor
|
/gcbrun |
Contributor
|
/gcbrun |
1 task
4dbea07 to
0e0f07c
Compare
Contributor
|
/gcbrun |
anubhav756
approved these changes
Apr 22, 2026
0e0f07c to
a01251c
Compare
Contributor
|
/gcbrun |
a01251c to
c64c2b5
Compare
Contributor
|
/gcbrun |
Contributor
|
/gcbrun |
omkargaikwad23
approved these changes
May 13, 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.
The server needs client identity and user-provided metadata (model, user ID, agent ID) on tools/call to propagate into database query logs via SQLCommenter. Currently _meta only carries traceparent/tracestate
Solution:
Add telemetry_attributes to MCPMeta with serialization alias dev.mcp-toolbox/telemetry.
Accept at call time: pop telemetry_attributes from kwargs before signature validation:
Build payload in transport: always include client.name + client.version from transport state; merge user-provided attrs with client. prefix. Attach to _meta on every tools/call
Issue: #632