René's URL Explorer Experiment


Title: mcp-server integration: align attribute names to current OTel GenAI/MCP semconv · Issue #21482 · getsentry/sentry-javascript · GitHub

Open Graph Title: mcp-server integration: align attribute names to current OTel GenAI/MCP semconv · Issue #21482 · getsentry/sentry-javascript

X Title: mcp-server integration: align attribute names to current OTel GenAI/MCP semconv · Issue #21482 · getsentry/sentry-javascript

Description: The MCP server integration's attributes.ts is pinned to an old draft of the OTel MCP spec (commit 3097fb0 in the now-deprecated open-telemetry/semantic-conventions repo). The spec has since moved to open-telemetry/semantic-conventions-ge...

Open Graph Description: The MCP server integration's attributes.ts is pinned to an old draft of the OTel MCP spec (commit 3097fb0 in the now-deprecated open-telemetry/semantic-conventions repo). The spec has since moved t...

X Description: The MCP server integration's attributes.ts is pinned to an old draft of the OTel MCP spec (commit 3097fb0 in the now-deprecated open-telemetry/semantic-conventions repo). The spec has since mov...

Opengraph URL: https://github.com/getsentry/sentry-javascript/issues/21482

X: @github

direct link

Domain: github.com

IPv4 address: 140.82.114.3


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"mcp-server integration: align attribute names to current OTel GenAI/MCP semconv","articleBody":"The MCP server integration's `attributes.ts` is pinned to an old draft of the OTel MCP spec ([commit `3097fb0`](https://github.com/open-telemetry/semantic-conventions/blob/3097fb0af5b9492b0e3f55dc5f6c21a3dc2be8df/docs/gen-ai/mcp.md) in the now-deprecated `open-telemetry/semantic-conventions` repo). The spec has since moved to [`open-telemetry/semantic-conventions-genai`](https://github.com/open-telemetry/semantic-conventions-genai) and the attribute names have materially changed.\n\n## Wrong attribute names\n\nThe following SDK constants emit the wrong attribute key. Each has a verified spec equivalent.\n\n| SDK constant | Emits | Should emit | Requirement level | Source |\n|---|---|---|---|---|\n| `MCP_TOOL_NAME_ATTRIBUTE` | `mcp.tool.name` | `gen_ai.tool.name` | Conditionally required (tool calls) | [common.yaml](https://github.com/open-telemetry/semantic-conventions-genai/blob/main/model/mcp/common.yaml) |\n| `MCP_PROMPT_NAME_ATTRIBUTE` | `mcp.prompt.name` | `gen_ai.prompt.name` | Conditionally required (prompt ops) | [common.yaml](https://github.com/open-telemetry/semantic-conventions-genai/blob/main/model/mcp/common.yaml) |\n| `MCP_REQUEST_ID_ATTRIBUTE` | `mcp.request.id` | `jsonrpc.request.id` | Conditionally required (requests) | [spans.yaml](https://github.com/open-telemetry/semantic-conventions-genai/blob/main/model/mcp/spans.yaml) |\n| `MCP_TRANSPORT_ATTRIBUTE` | `mcp.transport` | `network.transport` | Recommended | [common.yaml](https://github.com/open-telemetry/semantic-conventions-genai/blob/main/model/mcp/common.yaml) |\n| `MCP_REQUEST_ARGUMENT` (prefix) | `mcp.request.argument.\u003ckey>` | `gen_ai.tool.call.arguments` (single attr) | Opt-in | [spans.yaml](https://github.com/open-telemetry/semantic-conventions-genai/blob/main/model/mcp/spans.yaml) |\n| `MCP_TOOL_RESULT_CONTENT_ATTRIBUTE` | `mcp.tool.result.content` | `gen_ai.tool.call.result` (single attr) | Opt-in | [spans.yaml](https://github.com/open-telemetry/semantic-conventions-genai/blob/main/model/mcp/spans.yaml) |\n| `MCP_TOOL_RESULT_IS_ERROR_ATTRIBUTE` | `mcp.tool.result.is_error` | `error.type = \"tool_error\"` | Conditionally required | [common.yaml](https://github.com/open-telemetry/semantic-conventions-genai/blob/main/model/mcp/common.yaml) |\n\nNotes:\n- `network.transport` values SHOULD be `tcp` or `quic` for HTTP transport and `pipe` for stdio — not the MCP-level transport name.\n- `gen_ai.tool.call.arguments` and `gen_ai.tool.call.result` are single serialized attributes, not per-key prefixes.\n- `mcp.tool.result.content_count` has no spec equivalent at all.\n\n## Missing attributes\n\n| Attribute | Requirement level | Source | Notes |\n|---|---|---|---|\n| `gen_ai.operation.name` | Recommended | [common.yaml](https://github.com/open-telemetry/semantic-conventions-genai/blob/main/model/mcp/common.yaml) | SHOULD be `execute_tool` on tool call spans; allows consumers to treat MCP tool spans like other GenAI tool spans |\n| `rpc.response.status_code` | Conditionally required | [common.yaml](https://github.com/open-telemetry/semantic-conventions-genai/blob/main/model/mcp/common.yaml) | When response contains a JSON-RPC error code |\n| `jsonrpc.protocol.version` | Recommended | [common.yaml](https://github.com/open-telemetry/semantic-conventions-genai/blob/main/model/mcp/common.yaml) | When not `2.0` |\n\n## Custom attributes with no spec equivalent\n\nThese are Sentry-invented attributes that don't appear in the OTel spec. They may be worth keeping as explicit Sentry extensions, but should be documented as such and should not use namespaces that conflict with or extend spec-owned ones:\n\n- `mcp.client.name`, `mcp.client.title`, `mcp.client.version`\n- `mcp.server.name`, `mcp.server.title`, `mcp.server.version`\n- `mcp.logging.level`, `mcp.logging.logger`, `mcp.logging.data_type`, `mcp.logging.message`\n- `mcp.prompt.result.description`, `mcp.prompt.result.message_count`, `mcp.prompt.result.message_role`, `mcp.prompt.result.message_content`\n\nThe `mcp.*` namespace in the spec covers only: `mcp.method.name`, `mcp.session.id`, `mcp.resource.uri`, `mcp.protocol.version`. Anything else under `mcp.*` risks colliding with future spec attributes.\n\n## Spec references\n\n- [open-telemetry/semantic-conventions-genai — model/mcp/](https://github.com/open-telemetry/semantic-conventions-genai/tree/main/model/mcp) (current authoritative source)\n- [common.yaml](https://github.com/open-telemetry/semantic-conventions-genai/blob/main/model/mcp/common.yaml) — shared attributes including `gen_ai.tool.name`, `gen_ai.prompt.name`, `gen_ai.operation.name`\n- [spans.yaml](https://github.com/open-telemetry/semantic-conventions-genai/blob/main/model/mcp/spans.yaml) — span definitions with `gen_ai.tool.call.arguments`, `gen_ai.tool.call.result`\n- [registry.yaml](https://github.com/open-telemetry/semantic-conventions-genai/blob/main/model/mcp/registry.yaml) — full `mcp.*` attribute registry (only 4 attributes)","author":{"url":"https://github.com/dcramer","@type":"Person","name":"dcramer"},"datePublished":"2026-06-11T23:03:06Z","url":"https://github.com/getsentry/sentry-javascript/issues/21482"}

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322
route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:b0134150-fc41-2c80-f9e7-1278f2bc9d1b
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idD6E2:212AFB:B26ED6:F50785:6B045545
html-safe-noncef122e23367e517efbf571e6eccddb75c11ce171e4a9048c65610c3640c27f92b
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJENkUyOjIxMkFGQjpCMjZFRDY6RjUwNzg1OjZCMDQ1NTQ1IiwidmlzaXRvcl9pZCI6IjM4MjU2NzM5NzU3MzU0NzMzMyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac6b071bef6a2c6b8e16f244fa7cdba77844ce3ecdb734839035c62096d28d6b75
hovercard-subject-tagissue:4644821105
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/getsentry/sentry-javascript/21482/issue_layout
twitter:imagehttps://opengraph.githubassets.com/943c647a6136ca0a551a727e04975b95b002e3dca0bfe13d6e131b7dc61a6b01/getsentry/sentry-javascript/issues/21482
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/943c647a6136ca0a551a727e04975b95b002e3dca0bfe13d6e131b7dc61a6b01/getsentry/sentry-javascript/issues/21482
og:image:altThe MCP server integration's attributes.ts is pinned to an old draft of the OTel MCP spec (commit 3097fb0 in the now-deprecated open-telemetry/semantic-conventions repo). The spec has since moved t...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamedcramer
hostnamegithub.com
expected-hostnamegithub.com
None910ca0e260cfec6aff11407d8dc6a0d3a4cd381a2ec9ada56627b063426892a0
turbo-cache-controlno-preview
go-importgithub.com/getsentry/sentry-javascript git https://github.com/getsentry/sentry-javascript.git
octolytics-dimension-user_id1396951
octolytics-dimension-user_logingetsentry
octolytics-dimension-repository_id3328572
octolytics-dimension-repository_nwogetsentry/sentry-javascript
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id3328572
octolytics-dimension-repository_network_root_nwogetsentry/sentry-javascript
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
releasee086f9b7e88322eb2b41885a6ad425b215737fa5
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/getsentry/sentry-javascript/issues/21482#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fgetsentry%2Fsentry-javascript%2Fissues%2F21482
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fgetsentry%2Fsentry-javascript%2Fissues%2F21482
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=getsentry%2Fsentry-javascript
Reloadhttps://github.com/getsentry/sentry-javascript/issues/21482
Reloadhttps://github.com/getsentry/sentry-javascript/issues/21482
Reloadhttps://github.com/getsentry/sentry-javascript/issues/21482
getsentryhttps://github.com/getsentry
sentry-javascripthttps://github.com/getsentry/sentry-javascript
Codehttps://github.com/getsentry/sentry-javascript
Issues340 (340)https://github.com/getsentry/sentry-javascript/issues
Pull requests55 (55)https://github.com/getsentry/sentry-javascript/pulls
Discussionshttps://github.com/getsentry/sentry-javascript/discussions
Actionshttps://github.com/getsentry/sentry-javascript/actions
Security and quality7 (7)https://github.com/getsentry/sentry-javascript/security
Insightshttps://github.com/getsentry/sentry-javascript/insights
https://github.com/getsentry/sentry-javascript
New issuehttps://github.com/login?return_to=https://github.com/getsentry/sentry-javascript/issues/21482
New issuehttps://github.com/login?return_to=https://github.com/getsentry/sentry-javascript/issues/21482
mcp-server integration: align attribute names to current OTel GenAI/MCP semconvhttps://github.com/getsentry/sentry-javascript/issues/21482#top
Improvementhttps://github.com/getsentry/sentry-javascript/issues?q=state%3Aopen%20label%3A%22Improvement%22
Spanshttps://github.com/getsentry/sentry-javascript/issues?q=state%3Aopen%20label%3A%22Spans%22
javascriptPull requests that update javascript codehttps://github.com/getsentry/sentry-javascript/issues?q=state%3Aopen%20label%3A%22javascript%22
https://github.com/dcramer
dcramerhttps://github.com/dcramer
on Jun 11, 2026https://github.com/getsentry/sentry-javascript/issues/21482#issue-4644821105
commit 3097fb0https://github.com/open-telemetry/semantic-conventions/blob/3097fb0af5b9492b0e3f55dc5f6c21a3dc2be8df/docs/gen-ai/mcp.md
open-telemetry/semantic-conventions-genaihttps://github.com/open-telemetry/semantic-conventions-genai
common.yamlhttps://github.com/open-telemetry/semantic-conventions-genai/blob/main/model/mcp/common.yaml
common.yamlhttps://github.com/open-telemetry/semantic-conventions-genai/blob/main/model/mcp/common.yaml
spans.yamlhttps://github.com/open-telemetry/semantic-conventions-genai/blob/main/model/mcp/spans.yaml
common.yamlhttps://github.com/open-telemetry/semantic-conventions-genai/blob/main/model/mcp/common.yaml
spans.yamlhttps://github.com/open-telemetry/semantic-conventions-genai/blob/main/model/mcp/spans.yaml
spans.yamlhttps://github.com/open-telemetry/semantic-conventions-genai/blob/main/model/mcp/spans.yaml
common.yamlhttps://github.com/open-telemetry/semantic-conventions-genai/blob/main/model/mcp/common.yaml
common.yamlhttps://github.com/open-telemetry/semantic-conventions-genai/blob/main/model/mcp/common.yaml
common.yamlhttps://github.com/open-telemetry/semantic-conventions-genai/blob/main/model/mcp/common.yaml
common.yamlhttps://github.com/open-telemetry/semantic-conventions-genai/blob/main/model/mcp/common.yaml
open-telemetry/semantic-conventions-genai — model/mcp/https://github.com/open-telemetry/semantic-conventions-genai/tree/main/model/mcp
common.yamlhttps://github.com/open-telemetry/semantic-conventions-genai/blob/main/model/mcp/common.yaml
spans.yamlhttps://github.com/open-telemetry/semantic-conventions-genai/blob/main/model/mcp/spans.yaml
registry.yamlhttps://github.com/open-telemetry/semantic-conventions-genai/blob/main/model/mcp/registry.yaml
https://github.com/apps/linear-code
linear-codehttps://github.com/apps/linear-code
on Jun 11, 2026https://github.com/getsentry/sentry-javascript/issues/21482#issuecomment-4685825786
Linear Codehttps://linear.app
JS-2760https://linear.app/getsentry/issue/JS-2760
linear-codehttps://github.com/apps/linear-code
Improvementhttps://github.com/getsentry/sentry-javascript/issues?q=state%3Aopen%20label%3A%22Improvement%22
javascriptPull requests that update javascript codehttps://github.com/getsentry/sentry-javascript/issues?q=state%3Aopen%20label%3A%22javascript%22
on Jun 11, 2026https://github.com/getsentry/sentry-javascript/issues/21482#event-26649930919
dcramerhttps://github.com/dcramer
on Jun 11, 2026https://github.com/getsentry/sentry-javascript/issues/21482#event-26650075717
linear-codehttps://github.com/apps/linear-code
Spanshttps://github.com/getsentry/sentry-javascript/issues?q=state%3Aopen%20label%3A%22Spans%22
on Jun 11, 2026https://github.com/getsentry/sentry-javascript/issues/21482#event-26650099660
https://github.com/dcramer
dcramerhttps://github.com/dcramer
on Jun 11, 2026https://github.com/getsentry/sentry-javascript/issues/21482#issuecomment-4685866170
Sign up for freehttps://github.com/signup?return_to=https://github.com/getsentry/sentry-javascript/issues/21482
Sign in to commenthttps://github.com/login?return_to=https://github.com/getsentry/sentry-javascript/issues/21482
Improvementhttps://github.com/getsentry/sentry-javascript/issues?q=state%3Aopen%20label%3A%22Improvement%22
Spanshttps://github.com/getsentry/sentry-javascript/issues?q=state%3Aopen%20label%3A%22Spans%22
javascriptPull requests that update javascript codehttps://github.com/getsentry/sentry-javascript/issues?q=state%3Aopen%20label%3A%22javascript%22
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Response headers:
Servergithub.com
Content-Typetext/html; charset=utf-8
Cache-Controlmax-age=0, private, must-revalidate

Viewport: width=device-width


URLs of crawlers that visited me.