Repository navigation
Conversation
Contributor
size-limit report 📦
|
betegon
force-pushed
the
bt/fix-mcp-network-attributes
branch
from
September 25, 2026 19:45
9177afa to
64d1e58
Compare
betegon
force-pushed
the
bt/fix-mcp-network-attributes
branch
from
October 5, 2026 11:25
64d1e58 to
1d10ef0
Compare
betegon
marked this pull request as ready for review
October 5, 2026 11:35
andreiborza
requested review from
JPeer264 and
andreiborza
and removed request for
mydea
October 5, 2026 11:38
Lms24
reviewed
Oct 5, 2026
Member
There was a problem hiding this comment.
m: let's use attribute constants from @sentry/conventions/attributes instead of defining new ones with the same key here. i wanna avoid having more attribute keys we'd have to deprecate in the future. If any attributes are not yet added to conventions, please add them first, but the ones added here are already part of conventions.
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes and found 1 potential issue.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit 1d10ef0. Configure here.
Member
Author
|
putting this back in draft until we get all MCP 2.0 conventions in place. thanks @Lms24! |
betegon
marked this pull request as draft
October 5, 2026 13:29
This was referenced Oct 5, 2026
betegon
force-pushed
the
bt/fix-mcp-network-attributes
branch
from
October 5, 2026 14:49
60aa914 to
f981dea
Compare
This was referenced Oct 5, 2026
betegon
force-pushed
the
bt/fix-mcp-network-attributes
branch
from
October 13, 2026 08:52
f981dea to
6afa082
Compare
betegon
added a commit
that referenced
this pull request
Oct 13, 2026
Use `@sentry/conventions/attributes` for registered MCP keys, including
all singleton and indexed result fields. The branch now uses published
conventions `0.27.0` from `develop`, so both local result prefixes can
be removed.
Before, the SDK constructed `mcp.tool.result.0.content` from a local
prefix. After, `MCP_TOOL_RESULT_KEY_CONTENT.replace('<key>', '0')`
produces that same key. Singleton keys, values, original array indexes,
and input/output capture behavior remain unchanged. Deprecated
tool-result fields stay emitted for compatibility; this change adds no
aliases or backfill.
This is the mechanical base for network metadata (#24506), OAuth
attribution (#24508), and canonical OpenTelemetry attributes (#25060).
The latter separately adds complete serialized results in
`gen_ai.tool.call.result`.
betegon
force-pushed
the
bt/fix-mcp-network-attributes
branch
from
October 14, 2026 08:53
6afa082 to
825d142
Compare
This branch has not been deployed
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.

MCP spans currently report JSON-RPC
2.0as the network protocol version, even for stdio. Capture HTTP metadata from each request when available, and omit unknown network versions and transports instead of inferring TCP from a class name, following the OpenTelemetry MCP transport conventions.Preserve
mcp.transportas the implementation class name and capture request-localuser_agent.originalwith both MCP SDK majors, including discovery and unsupported methods. For atools/listrequest handled byPerRequestHTTPServerTransportin Cloudflare, withrequest.cf.httpProtocol = "HTTP/3"andUser-Agent: example-client/1.0:mcp.transportPerRequestHTTPServerTransportPerRequestHTTPServerTransportnetwork.protocol.namehttpnetwork.protocol.version2.0(JSON-RPC version)3(actual HTTP version)network.transporttcp(inferred from the class name)quicuser_agent.originalexample-client/1.0For a standard Web Request without
cf.httpProtocol, the HTTP version and network transport are omitted.#25059 is merged; this branch is rebased on develop and uses published
@sentry/conventions@0.27.0. Relay #6498 is merged and contains the conventions update that removes themcp.transporttonetwork.transportbackfill. Confirm that deployment and Sentry #126744, which keeps MCP-only spans visible in the dashboard, before releasing this SDK change. Merge status alone does not establish deployment.Validated the 48-project SDK build, formatting and lint, 154 MCP unit tests, and 14 real MCP SDK v1/v2 integration tests after rebase.
Fixes #24507