René's URL Explorer Experiment


Title: Add richer OTel MCP span attributes by Kludex · Pull Request #2387 · modelcontextprotocol/python-sdk · GitHub

Open Graph Title: Add richer OTel MCP span attributes by Kludex · Pull Request #2387 · modelcontextprotocol/python-sdk

X Title: Add richer OTel MCP span attributes by Kludex · Pull Request #2387 · modelcontextprotocol/python-sdk

Description: The official Python SDK for Model Context Protocol servers and clients - Add richer OTel MCP span attributes by Kludex · Pull Request #2387 · modelcontextprotocol/python-sdk

Open Graph Description: Summary add shared OTel attribute builders for MCP client and server request spans attach rpc.system, rpc.method, rpc.service, mcp.resource.uri, and mcp.session.id where available cover the new re...

X Description: Summary add shared OTel attribute builders for MCP client and server request spans attach rpc.system, rpc.method, rpc.service, mcp.resource.uri, and mcp.session.id where available cover the new re...

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

X: @github

direct link

Domain: github.com

IPv4 address: 140.82.113.4

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:fc682168-78b3-2b19-a091-1e9825033c45
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idD878:34675C:12D972E:19DB788:6B056B81
html-safe-nonce2ebc116797608b7a61e7e335415604c6fc24b71bc96e44008e05a077716adcd3
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEODc4OjM0Njc1QzoxMkQ5NzJFOjE5REI3ODg6NkIwNTZCODEiLCJ2aXNpdG9yX2lkIjoiODc3MDc3OTkzODQ1OTgzOTM2MSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmacb8a0ad41dd3d8933f210740ce352f95cba9b474c60e30263db6232efd5e6c829
hovercard-subject-tagpull_request:3484489775
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/2387/pull_request_layout
twitter:imagehttps://opengraph.githubassets.com/be2f1d3da00bce278f9df47040530d4d97334d891d11c4eaaaccf3ff0df8f2d9/modelcontextprotocol/python-sdk/pull/2387
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/be2f1d3da00bce278f9df47040530d4d97334d891d11c4eaaaccf3ff0df8f2d9/modelcontextprotocol/python-sdk/pull/2387
og:image:altSummary add shared OTel attribute builders for MCP client and server request spans attach rpc.system, rpc.method, rpc.service, mcp.resource.uri, and mcp.session.id where available cover the new re...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameKludex
hostnamegithub.com
expected-hostnamegithub.com
None9b4256ac5f3e310e7945ef5b71c9cb9e264357b1eb20e91d369ed6502a4c486c
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
releasef089e689ad324655ac44bf6cdbc04d976105b374
ui-targetcanary-1
theme-color#1e2327
color-schemelight dark
react-app-namepull-requests

Links:

Skip to contenthttps://github.com/modelcontextprotocol/python-sdk/pull/2387#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmodelcontextprotocol%2Fpython-sdk%2Fpull%2F2387
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%2F2387
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/2387
Reloadhttps://github.com/modelcontextprotocol/python-sdk/pull/2387
Reloadhttps://github.com/modelcontextprotocol/python-sdk/pull/2387
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
Kludexhttps://github.com/Kludex
mainhttps://github.com/modelcontextprotocol/python-sdk/tree/main
codex/add-otel-mcp-attributeshttps://github.com/modelcontextprotocol/python-sdk/tree/codex/add-otel-mcp-attributes
Conversationhttps://github.com/modelcontextprotocol/python-sdk/pull/2387
Commits5 (5)https://github.com/modelcontextprotocol/python-sdk/pull/2387/commits
Checkshttps://github.com/modelcontextprotocol/python-sdk/pull/2387/checks
Files changedhttps://github.com/modelcontextprotocol/python-sdk/pull/2387/files
Add richer OTel MCP span attributeshttps://github.com/modelcontextprotocol/python-sdk/pull/2387#top
Kludexhttps://github.com/Kludex
mainhttps://github.com/modelcontextprotocol/python-sdk/tree/main
codex/add-otel-mcp-attributeshttps://github.com/modelcontextprotocol/python-sdk/tree/codex/add-otel-mcp-attributes
https://github.com/Kludex
Kludexhttps://github.com/Kludex
Apr 2, 2026https://github.com/modelcontextprotocol/python-sdk/pull/2387#issue-4197455345
Please reload this pagehttps://github.com/modelcontextprotocol/python-sdk/pull/2387
https://github.com/Kludex
Add richer OTel MCP span attributeshttps://github.com/modelcontextprotocol/python-sdk/pull/2387/commits/456437676bc304ebe367737cb02d8090d93d6a4e
4564376https://github.com/modelcontextprotocol/python-sdk/pull/2387/commits/456437676bc304ebe367737cb02d8090d93d6a4e
https://github.com/apps/claude
claudehttps://github.com/apps/claude
Apr 2, 2026 https://github.com/modelcontextprotocol/python-sdk/pull/2387#pullrequestreview-4053665251
View reviewed changes https://github.com/modelcontextprotocol/python-sdk/pull/2387/files/456437676bc304ebe367737cb02d8090d93d6a4e
claudehttps://github.com/apps/claude
https://github.com/modelcontextprotocol/python-sdk/pull/2387#pullrequestreview-4053665251
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/modelcontextprotocol/python-sdk/pull/2387
src/mcp/server/lowlevel/server.pyhttps://github.com/modelcontextprotocol/python-sdk/pull/2387/files/456437676bc304ebe367737cb02d8090d93d6a4e#diff-b21bf5e21c058ccfddb404c209f2d4288e4f32b121111ffc9d466638631d13e4
Please reload this pagehttps://github.com/modelcontextprotocol/python-sdk/pull/2387
Kludexhttps://github.com/Kludex
April 2, 2026 19:46https://github.com/modelcontextprotocol/python-sdk/pull/2387#commits-pushed-67ca7fe
https://github.com/Kludex
Remove client OTel session-id wrapperhttps://github.com/modelcontextprotocol/python-sdk/pull/2387/commits/67ca7fea72d11dedd068c060aa9c09df4085ace1
67ca7fehttps://github.com/modelcontextprotocol/python-sdk/pull/2387/commits/67ca7fea72d11dedd068c060aa9c09df4085ace1
https://github.com/Kludex
Inline OTel span attributeshttps://github.com/modelcontextprotocol/python-sdk/pull/2387/commits/b5b5389689bfa64a5cfa65d803687bc16fb0a773
b5b5389https://github.com/modelcontextprotocol/python-sdk/pull/2387/commits/b5b5389689bfa64a5cfa65d803687bc16fb0a773
https://github.com/apps/claude
claudehttps://github.com/apps/claude
Apr 2, 2026 https://github.com/modelcontextprotocol/python-sdk/pull/2387#pullrequestreview-4053700193
View reviewed changes https://github.com/modelcontextprotocol/python-sdk/pull/2387/files/b5b5389689bfa64a5cfa65d803687bc16fb0a773
claudehttps://github.com/apps/claude
https://github.com/modelcontextprotocol/python-sdk/pull/2387#pullrequestreview-4053700193
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
https://opentelemetry.io/docs/specs/semconv/rpc/rpc-spans/https://opentelemetry.io/docs/specs/semconv/rpc/rpc-spans/
Please reload this pagehttps://github.com/modelcontextprotocol/python-sdk/pull/2387
tests/shared/test_otel.pyhttps://github.com/modelcontextprotocol/python-sdk/pull/2387/files/b5b5389689bfa64a5cfa65d803687bc16fb0a773#diff-84f003b56f0cb53b4aa8d9c9b77caceba5fdebd6874448f02410dffb0815cbaa
Please reload this pagehttps://github.com/modelcontextprotocol/python-sdk/pull/2387
https://github.com/Kludex
Restore OTel span attribute helpershttps://github.com/modelcontextprotocol/python-sdk/pull/2387/commits/2c4b51a1fa46835f4e2f704dd15fed4c3e93106b
2c4b51ahttps://github.com/modelcontextprotocol/python-sdk/pull/2387/commits/2c4b51a1fa46835f4e2f704dd15fed4c3e93106b
https://github.com/apps/claude
claudehttps://github.com/apps/claude
Apr 3, 2026 https://github.com/modelcontextprotocol/python-sdk/pull/2387#pullrequestreview-4053734030
View reviewed changes https://github.com/modelcontextprotocol/python-sdk/pull/2387/files/2c4b51a1fa46835f4e2f704dd15fed4c3e93106b
tests/shared/test_otel.pyhttps://github.com/modelcontextprotocol/python-sdk/pull/2387/files/2c4b51a1fa46835f4e2f704dd15fed4c3e93106b#diff-84f003b56f0cb53b4aa8d9c9b77caceba5fdebd6874448f02410dffb0815cbaa
Please reload this pagehttps://github.com/modelcontextprotocol/python-sdk/pull/2387
https://github.com/Kludex
Address PR review findingshttps://github.com/modelcontextprotocol/python-sdk/pull/2387/commits/f5b9f396716a5d145768d959332962cd7effb563
f5b9f39https://github.com/modelcontextprotocol/python-sdk/pull/2387/commits/f5b9f396716a5d145768d959332962cd7effb563
https://github.com/apps/claude
claudehttps://github.com/apps/claude
Apr 3, 2026 https://github.com/modelcontextprotocol/python-sdk/pull/2387#pullrequestreview-4053771264
View reviewed changes https://github.com/modelcontextprotocol/python-sdk/pull/2387/files/f5b9f396716a5d145768d959332962cd7effb563
src/mcp/shared/_otel.pyhttps://github.com/modelcontextprotocol/python-sdk/pull/2387/files/f5b9f396716a5d145768d959332962cd7effb563#diff-f7b9208e58bf90e0bfe4ecf1f810dfdb14524bbd475f9f8e01c3df04355bd598
claudehttps://github.com/apps/claude
Apr 3, 2026https://github.com/modelcontextprotocol/python-sdk/pull/2387#discussion_r3030939708
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
67ca7fehttps://github.com/modelcontextprotocol/python-sdk/commit/67ca7fea72d11dedd068c060aa9c09df4085ace1
67ca7fehttps://github.com/modelcontextprotocol/python-sdk/commit/67ca7fea72d11dedd068c060aa9c09df4085ace1
2c4b51ahttps://github.com/modelcontextprotocol/python-sdk/commit/2c4b51a1fa46835f4e2f704dd15fed4c3e93106b
67ca7fehttps://github.com/modelcontextprotocol/python-sdk/commit/67ca7fea72d11dedd068c060aa9c09df4085ace1
2c4b51ahttps://github.com/modelcontextprotocol/python-sdk/commit/2c4b51a1fa46835f4e2f704dd15fed4c3e93106b
Please reload this pagehttps://github.com/modelcontextprotocol/python-sdk/pull/2387
https://github.com/apps/marvin-context-protocol
marvin-context-protocolhttps://github.com/apps/marvin-context-protocol
May 13, 2026 https://github.com/modelcontextprotocol/python-sdk/pull/2387#ref-issue-4439552248
FastMCP 3.x: initialize trace propagation / upstream SDK support PrefectHQ/fastmcp#4131 https://github.com/PrefectHQ/fastmcp/issues/4131
https://github.com/mihai-dinculescu
mihai-dinculescuhttps://github.com/mihai-dinculescu
Nov 8, 2026 https://github.com/modelcontextprotocol/python-sdk/pull/2387#ref-issue-6270343655
OTel client spans: add server.address (and other semconv client attributes) so tool calls can be attributed to a server #3836 https://github.com/modelcontextprotocol/python-sdk/issues/3836
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%2F2387
https://github.com/apps/claude
claude[bot] https://github.com/apps/claude
https://github.com/modelcontextprotocol/python-sdk/pull/2387/files/f5b9f396716a5d145768d959332962cd7effb563
Please reload this pagehttps://github.com/modelcontextprotocol/python-sdk/pull/2387
Please reload this pagehttps://github.com/modelcontextprotocol/python-sdk/pull/2387
https://github.com/Kludex
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.