René's URL Explorer Experiment


Title: Add GenAI semconv attributes to native OTel spans by etserend · Pull Request #2854 · modelcontextprotocol/python-sdk · GitHub

Open Graph Title: Add GenAI semconv attributes to native OTel spans by etserend · Pull Request #2854 · modelcontextprotocol/python-sdk

X Title: Add GenAI semconv attributes to native OTel spans by etserend · Pull Request #2854 · modelcontextprotocol/python-sdk

Description: The official Python SDK for Model Context Protocol servers and clients - Add GenAI semconv attributes to native OTel spans by etserend · Pull Request #2854 · modelcontextprotocol/python-sdk

Open Graph Description: The existing otel_middleware and client-side spans only emitted mcp.method.name and jsonrpc.request.id. This enriches them with attributes defined in the OTel GenAI MCP semantic conventions: gen_a...

X Description: The existing otel_middleware and client-side spans only emitted mcp.method.name and jsonrpc.request.id. This enriches them with attributes defined in the OTel GenAI MCP semantic conventions: gen_a...

Opengraph URL: https://github.com/modelcontextprotocol/python-sdk/pull/2854

X: @github

direct link

Domain: github.com

IPv4 address: 140.82.113.3

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/voltron/pull_requests/show/:user_id/:repository/:id/pull_request_layout(.:format)
route-controllervoltron_pull_requests_fragments
route-actionpull_request_layout
fetch-noncev2:51325653-efa9-a8f4-ef14-a5111af03731
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idB430:12A1D2:1AF0920:23A3396:6B056266
html-safe-nonced77c5ef970b69f6fe013d165dd011622b8309384353b977f8a5966462119f5f9
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCNDMwOjEyQTFEMjoxQUYwOTIwOjIzQTMzOTY6NkIwNTYyNjYiLCJ2aXNpdG9yX2lkIjoiNTc4Mjk0NTI0NDE4MjMwNzQzMCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmacdd6c41f049ce89cd95f16551b53c769579945831c9ccf8149c64a6fddf7b4651
hovercard-subject-tagpull_request:3857219830
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/pull_requests_fragments/pull_request_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/voltron/pull_requests/show/modelcontextprotocol/python-sdk/2854/pull_request_layout
twitter:imagehttps://opengraph.githubassets.com/5f04a17948d986d15295e5427aec7fd604ace3aadbd568cce749acc70c2e56c2/modelcontextprotocol/python-sdk/pull/2854
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/5f04a17948d986d15295e5427aec7fd604ace3aadbd568cce749acc70c2e56c2/modelcontextprotocol/python-sdk/pull/2854
og:image:altThe existing otel_middleware and client-side spans only emitted mcp.method.name and jsonrpc.request.id. This enriches them with attributes defined in the OTel GenAI MCP semantic conventions: gen_a...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameetserend
hostnamegithub.com
expected-hostnamegithub.com
None8a6760da3cce5e2d079d07e3b62df71194316c4478db1a5e38050f44fce72c72
turbo-cache-controlno-cache
go-importgithub.com/modelcontextprotocol/python-sdk git https://github.com/modelcontextprotocol/python-sdk.git
octolytics-dimension-user_id182288589
octolytics-dimension-user_loginmodelcontextprotocol
octolytics-dimension-repository_id862584018
octolytics-dimension-repository_nwomodelcontextprotocol/python-sdk
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id862584018
octolytics-dimension-repository_network_root_nwomodelcontextprotocol/python-sdk
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
release8327739ac0648b9c3c722b5f401f7338553936b8
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-namepull-requests

Links:

Skip to contenthttps://github.com/modelcontextprotocol/python-sdk/pull/2854#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmodelcontextprotocol%2Fpython-sdk%2Fpull%2F2854
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%2Fmodelcontextprotocol%2Fpython-sdk%2Fpull%2F2854
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%2Fpull_requests_fragments%2Fpull_request_layout&source=header-repo&source_repo=modelcontextprotocol%2Fpython-sdk
Reloadhttps://github.com/modelcontextprotocol/python-sdk/pull/2854
Reloadhttps://github.com/modelcontextprotocol/python-sdk/pull/2854
Reloadhttps://github.com/modelcontextprotocol/python-sdk/pull/2854
modelcontextprotocolhttps://github.com/modelcontextprotocol
python-sdkhttps://github.com/modelcontextprotocol/python-sdk
Codehttps://github.com/modelcontextprotocol/python-sdk
Issues320 (320)https://github.com/modelcontextprotocol/python-sdk/issues
Pull requests112 (112)https://github.com/modelcontextprotocol/python-sdk/pulls
Actionshttps://github.com/modelcontextprotocol/python-sdk/actions
Projectshttps://github.com/modelcontextprotocol/python-sdk/projects
Security and quality12 (12)https://github.com/modelcontextprotocol/python-sdk/security
Insightshttps://github.com/modelcontextprotocol/python-sdk/insights
https://github.com/modelcontextprotocol/python-sdk
etserendhttps://github.com/etserend
modelcontextprotocol:mainhttps://github.com/modelcontextprotocol/python-sdk/tree/main
etserend:enrich-otel-spans-genai-semconvhttps://github.com/etserend/python-sdk/tree/enrich-otel-spans-genai-semconv
Conversationhttps://github.com/modelcontextprotocol/python-sdk/pull/2854
Commits4 (4)https://github.com/modelcontextprotocol/python-sdk/pull/2854/commits
Checkshttps://github.com/modelcontextprotocol/python-sdk/pull/2854/checks
Files changedhttps://github.com/modelcontextprotocol/python-sdk/pull/2854/files
Add GenAI semconv attributes to native OTel spanshttps://github.com/modelcontextprotocol/python-sdk/pull/2854#top
etserendhttps://github.com/etserend
modelcontextprotocol:mainhttps://github.com/modelcontextprotocol/python-sdk/tree/main
etserend:enrich-otel-spans-genai-semconvhttps://github.com/etserend/python-sdk/tree/enrich-otel-spans-genai-semconv
https://github.com/etserend
etserendhttps://github.com/etserend
Jun 12, 2026https://github.com/modelcontextprotocol/python-sdk/pull/2854#issue-4652235862
GenAI MCP semantic conventionshttps://github.com/open-telemetry/semantic-conventions-genai/blob/main/model/mcp/spans.yaml
otel_middlewarehttps://github.com/modelcontextprotocol/python-sdk/blob/7267818e44ec41bea169d8499ce205d2e6614753/src/mcp/server/runner.py#L91
MCP Documentationhttps://modelcontextprotocol.io
Please reload this pagehttps://github.com/modelcontextprotocol/python-sdk/pull/2854
https://github.com/etserend
etserendhttps://github.com/etserend
Jun 12, 2026https://github.com/modelcontextprotocol/python-sdk/pull/2854#issuecomment-4695409676
Please reload this pagehttps://github.com/modelcontextprotocol/python-sdk/pull/2854
https://github.com/etserend
etserendhttps://github.com/etserend
force-pushedhttps://github.com/modelcontextprotocol/python-sdk/compare/aa95d2b1b879810cf97e6626e40854da34454c63..6930f928c5b8a8c9c9e62e41b65d65870bdbc55b
aa95d2bhttps://github.com/modelcontextprotocol/python-sdk/commit/aa95d2b1b879810cf97e6626e40854da34454c63
6930f92https://github.com/modelcontextprotocol/python-sdk/commit/6930f928c5b8a8c9c9e62e41b65d65870bdbc55b
Compare https://github.com/modelcontextprotocol/python-sdk/compare/aa95d2b1b879810cf97e6626e40854da34454c63..6930f928c5b8a8c9c9e62e41b65d65870bdbc55b
June 12, 2026 20:59https://github.com/modelcontextprotocol/python-sdk/pull/2854#event-26694098433
https://github.com/adityamehra
adityamehrahttps://github.com/adityamehra
Jun 12, 2026 https://github.com/modelcontextprotocol/python-sdk/pull/2854#pullrequestreview-4489373748
View reviewed changes https://github.com/modelcontextprotocol/python-sdk/pull/2854/files
src/mcp/shared/_otel.pyhttps://github.com/modelcontextprotocol/python-sdk/pull/2854/files#diff-f7b9208e58bf90e0bfe4ecf1f810dfdb14524bbd475f9f8e01c3df04355bd598
Please reload this pagehttps://github.com/modelcontextprotocol/python-sdk/pull/2854
etserendhttps://github.com/etserend
June 15, 2026 09:17https://github.com/modelcontextprotocol/python-sdk/pull/2854#commits-pushed-fb175a4
https://github.com/etserend
Add GenAI semconv attributes to native OTel spanshttps://github.com/modelcontextprotocol/python-sdk/pull/2854/commits/fb175a46d0dced5f2bbcd945b8ffd759c263fb88
fb175a4https://github.com/modelcontextprotocol/python-sdk/pull/2854/commits/fb175a46d0dced5f2bbcd945b8ffd759c263fb88
https://github.com/etserend
Fix pyright type errors and coverage gaps in OTel span attributeshttps://github.com/modelcontextprotocol/python-sdk/pull/2854/commits/ecd55beedd6e96e94119e2c9acb15c203baca122
ecd55behttps://github.com/modelcontextprotocol/python-sdk/pull/2854/commits/ecd55beedd6e96e94119e2c9acb15c203baca122
https://github.com/etserend
Address review: restrict gen_ai.operation.name to tools/call per spec…https://github.com/modelcontextprotocol/python-sdk/pull/2854/commits/21381fc0e56866c40bce044176ace5f3538bf8e3
21381fchttps://github.com/modelcontextprotocol/python-sdk/pull/2854/commits/21381fc0e56866c40bce044176ace5f3538bf8e3
https://github.com/etserend
Fix ruff formatting: add blank line before build_span_attributeshttps://github.com/modelcontextprotocol/python-sdk/pull/2854/commits/57447771ca9b559c77ec5030ca3c09f280021381
5744777https://github.com/modelcontextprotocol/python-sdk/pull/2854/commits/57447771ca9b559c77ec5030ca3c09f280021381
https://github.com/etserend
etserendhttps://github.com/etserend
force-pushedhttps://github.com/modelcontextprotocol/python-sdk/compare/e038fe218bdf86bcd5ea42c4f5c28427f3358ab0..57447771ca9b559c77ec5030ca3c09f280021381
e038fe2https://github.com/modelcontextprotocol/python-sdk/commit/e038fe218bdf86bcd5ea42c4f5c28427f3358ab0
5744777https://github.com/modelcontextprotocol/python-sdk/commit/57447771ca9b559c77ec5030ca3c09f280021381
Compare https://github.com/modelcontextprotocol/python-sdk/compare/e038fe218bdf86bcd5ea42c4f5c28427f3358ab0..57447771ca9b559c77ec5030ca3c09f280021381
June 15, 2026 14:21https://github.com/modelcontextprotocol/python-sdk/pull/2854#event-26762000468
https://github.com/etserend
etserendhttps://github.com/etserend
June 15, 2026 15:52https://github.com/modelcontextprotocol/python-sdk/pull/2854#event-26766285560
https://github.com/etserend
etserendhttps://github.com/etserend
Jun 16, 2026 https://github.com/modelcontextprotocol/python-sdk/pull/2854#ref-issue-4526737326
opentelemetry-util-genai: add MCP invocation types and TelemetryHandler support open-telemetry/opentelemetry-python-contrib#4632 https://github.com/open-telemetry/opentelemetry-python-contrib/issues/4632
https://github.com/HarperZ9
HarperZ9https://github.com/HarperZ9
Jul 26, 2026 https://github.com/modelcontextprotocol/python-sdk/pull/2854#ref-issue-4979103793
[v2] JSON-RPC error responses leave client OpenTelemetry spans UNSET #3174 https://github.com/modelcontextprotocol/python-sdk/issues/3174
https://github.com/maxisbey
maxisbeyhttps://github.com/maxisbey
Jul 29, 2026https://github.com/modelcontextprotocol/python-sdk/pull/2854#issuecomment-5118732103
#2970https://github.com/modelcontextprotocol/python-sdk/pull/2970
AI Disclaimerhttps://gist.github.com/maxisbey/6123d132484e4c533eab519a2800693d
Please reload this pagehttps://github.com/modelcontextprotocol/python-sdk/pull/2854
https://github.com/maxisbey
maxisbeyhttps://github.com/maxisbey
Jul 29, 2026https://github.com/modelcontextprotocol/python-sdk/pull/2854#event-28664585677
https://github.co/hiddenchars
https://github.com/modelcontextprotocol/python-sdk/pull/{{ revealButtonHref }}
Sign up for freehttps://github.com/join?source=comment-repo
Sign in to commenthttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmodelcontextprotocol%2Fpython-sdk%2Fpull%2F2854
https://github.com/adityamehra
adityamehra https://github.com/adityamehra
https://github.com/modelcontextprotocol/python-sdk/pull/2854/files/6930f928c5b8a8c9c9e62e41b65d65870bdbc55b
Please reload this pagehttps://github.com/modelcontextprotocol/python-sdk/pull/2854
Please reload this pagehttps://github.com/modelcontextprotocol/python-sdk/pull/2854
https://github.com/etserend
https://github.com/maxisbey
https://github.com/adityamehra
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-Controlno-cache

Viewport: width=device-width


URLs of crawlers that visited me.