Repository navigation
Align vMCP client telemetry with OTEL MCP semantic conventions - #3775
Merged
Merged
Conversation
ChrisJBurns
requested review from
JAORMX,
amirejaz,
jerm-dro,
jhrozek and
yrobla
as code owners
February 11, 2026 14:23
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #3775 +/- ##
==========================================
+ Coverage 66.57% 66.58% +0.01%
==========================================
Files 432 432
Lines 42215 42259 +44
==========================================
+ Hits 28103 28139 +36
- Misses 11970 11979 +9
+ Partials 2142 2141 -1 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
ChrisJBurns
force-pushed
the
otel/vmcp-client-spec-compliance
branch
from
February 11, 2026 14:45
1df65cb to
22ad587
Compare
ChrisJBurns
force-pushed
the
otel/vmcp-client-spec-compliance
branch
from
February 11, 2026 14:45
22ad587 to
013b7b8
Compare
jerm-dro
previously approved these changes
Feb 11, 2026
JAORMX
reviewed
Feb 11, 2026
JAORMX
reviewed
Feb 11, 2026
- Change span names from internal format (telemetryBackendClient.call_tool) to spec format (tools/call my-tool) - Add mcp.method.name (Required) to all client spans - Add spec-required attributes to mcp.client.operation.duration metric: mcp.method.name, network.transport, and error.type on error - Add gen_ai.tool.name, gen_ai.prompt.name, mcp.resource.uri to appropriate method spans - Add resource_uri backward-compat attribute to ReadResource - Avoid unbounded cardinality in ReadResource span names by omitting the URI from the span name (captured in attributes instead) - Keep all existing ToolHive-specific attributes for backward compatibility - Add unit tests for mapActionToMCPMethod and mapTransportTypeToNetworkTransport mapping functions Co-Authored-By: Claude Opus 4.6 <[email protected]>
ChrisJBurns
force-pushed
the
otel/vmcp-client-spec-compliance
branch
from
February 11, 2026 15:37
013b7b8 to
3f60f5f
Compare
JAORMX
approved these changes
Feb 11, 2026
11 tasks
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.
Summary
telemetryBackendClient.call_tool) to spec format (tools/call my-tool)mcp.method.name(Required) to all client spansmcp.client.operation.durationmetric:mcp.method.name,network.transport, anderror.typeon errorgen_ai.tool.name,gen_ai.prompt.name,mcp.resource.urito appropriate method spansresource_uribackward-compat attribute to ReadResource, matching the pattern used by CallTool (tool_name) and GetPrompt (prompt_name)mapActionToMCPMethodandmapTransportTypeToNetworkTransportmapping functionsParent issue: #3399
Test plan
go build ./pkg/vmcp/server/...compiles cleanlygo test ./pkg/vmcp/server/...passes (including new unit tests)task lint-fixpasses with 0 issues🤖 Generated with Claude Code