René's URL Explorer Experiment


Title: fix(openai-agents): also emit spans for MCP tool calls done by the LLM by constantinius · Pull Request #4875 · getsentry/sentry-python · GitHub

Open Graph Title: fix(openai-agents): also emit spans for MCP tool calls done by the LLM by constantinius · Pull Request #4875 · getsentry/sentry-python

X Title: fix(openai-agents): also emit spans for MCP tool calls done by the LLM by constantinius · Pull Request #4875 · getsentry/sentry-python

Description: The official Python SDK for Sentry.io. Contribute to getsentry/sentry-python development by creating an account on GitHub.

Open Graph Description: Description We cannot directly intercept MCP Tool calls, as they are done remotely by the LLM and not in the Agent itself. However, we see when such a tool call took place, so we can emit a zero-le...

X Description: Description We cannot directly intercept MCP Tool calls, as they are done remotely by the LLM and not in the Agent itself. However, we see when such a tool call took place, so we can emit a zero-le...

Opengraph URL: https://github.com/getsentry/sentry-python/pull/4875

X: @github

direct link

Domain: github.com

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/:user_id/:repository/pull/:id/commits(.:format)
route-controllerpull_requests
route-actioncommits
fetch-noncev2:c98ecdd0-2df0-f54c-e04c-740e4587de85
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-id8D5E:2E615D:3C0648:4FDF24:6B00A106
html-safe-nonce273dd672ea2851d6fbf74af0548fdf56eae383c814caa9d8237dfd3bbdb916fa
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4RDVFOjJFNjE1RDozQzA2NDg6NEZERjI0OjZCMDBBMTA2IiwidmlzaXRvcl9pZCI6IjE2ODk1MTI0MDgwMDkxODc1OTAiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmacc6c55b99df965c55e3394df39c9adefc254b3d136eb47874c62f4c58d4f67da2
hovercard-subject-tagpull_request:2873620344
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///pull_requests/show/commits
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/getsentry/sentry-python/pull/4875/commits
twitter:imagehttps://opengraph.githubassets.com/6b53fbf0175e8b945e4a0c5818031d74980b928b026b92ea7decd1ad93e07087/getsentry/sentry-python/pull/4875
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/6b53fbf0175e8b945e4a0c5818031d74980b928b026b92ea7decd1ad93e07087/getsentry/sentry-python/pull/4875
og:image:altDescription We cannot directly intercept MCP Tool calls, as they are done remotely by the LLM and not in the Agent itself. However, we see when such a tool call took place, so we can emit a zero-le...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameconstantinius
hostnamegithub.com
expected-hostnamegithub.com
None52c95ce7e48016ae14399656b4ee812462b6f1fa28c5008c8394da64794c00b8
turbo-cache-controlno-cache
go-importgithub.com/getsentry/sentry-python git https://github.com/getsentry/sentry-python.git
octolytics-dimension-user_id1396951
octolytics-dimension-user_logingetsentry
octolytics-dimension-repository_id137814779
octolytics-dimension-repository_nwogetsentry/sentry-python
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id137814779
octolytics-dimension-repository_network_root_nwogetsentry/sentry-python
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
release1c9ddec8215f9a94e295c8310c3579b9c54ba31a
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-namepull-requests

Links:

Skip to contenthttps://github.com/getsentry/sentry-python/pull/4875/commits#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fgetsentry%2Fsentry-python%2Fpull%2F4875%2Fcommits
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-python%2Fpull%2F4875%2Fcommits
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fpull_requests%2Fshow%2Fcommits&source=header-repo&source_repo=getsentry%2Fsentry-python
Reloadhttps://github.com/getsentry/sentry-python/pull/4875/commits
Reloadhttps://github.com/getsentry/sentry-python/pull/4875/commits
Reloadhttps://github.com/getsentry/sentry-python/pull/4875/commits
getsentryhttps://github.com/getsentry
sentry-pythonhttps://github.com/getsentry/sentry-python
Codehttps://github.com/getsentry/sentry-python
Issues345 (345)https://github.com/getsentry/sentry-python/issues
Pull requests42 (42)https://github.com/getsentry/sentry-python/pulls
Discussionshttps://github.com/getsentry/sentry-python/discussions
Actionshttps://github.com/getsentry/sentry-python/actions
Security and quality2 (2)https://github.com/getsentry/sentry-python/security
Insightshttps://github.com/getsentry/sentry-python/insights
https://github.com/getsentry/sentry-python
constantiniushttps://github.com/constantinius
masterhttps://github.com/getsentry/sentry-python/tree/master
constantinius/fix/openai-agents/mcp-execute-tool-spanshttps://github.com/getsentry/sentry-python/tree/constantinius/fix/openai-agents/mcp-execute-tool-spans
Conversationhttps://github.com/getsentry/sentry-python/pull/4875
Commits8 (8)https://github.com/getsentry/sentry-python/pull/4875/commits
Checkshttps://github.com/getsentry/sentry-python/pull/4875/checks
Files changedhttps://github.com/getsentry/sentry-python/pull/4875/files
fix(openai-agents): also emit spans for MCP tool calls done by the LLMhttps://github.com/getsentry/sentry-python/pull/4875/commits#top
constantiniushttps://github.com/constantinius
masterhttps://github.com/getsentry/sentry-python/tree/master
constantinius/fix/openai-agents/mcp-execute-tool-spanshttps://github.com/getsentry/sentry-python/tree/constantinius/fix/openai-agents/mcp-execute-tool-spans
fix(openai-agents): also emit spans for MCP tool calls done by the LLMhttps://github.com/getsentry/sentry-python/pull/4875/commits/6cb7b43591471c26196e0ca9ef4099f39f431224
https://github.com/constantinius
constantiniushttps://github.com/getsentry/sentry-python/commits?author=constantinius
6cb7b43https://github.com/getsentry/sentry-python/pull/4875/commits/6cb7b43591471c26196e0ca9ef4099f39f431224
https://github.com/getsentry/sentry-python/tree/6cb7b43591471c26196e0ca9ef4099f39f431224
fix(openai-agents): improve span handling in MCP tool executionhttps://github.com/getsentry/sentry-python/pull/4875/commits/96df8c1c08768d7f1d1369e66a9c4e7f6ebfc04c
https://github.com/constantinius
constantiniushttps://github.com/getsentry/sentry-python/commits?author=constantinius
96df8c1https://github.com/getsentry/sentry-python/pull/4875/commits/96df8c1c08768d7f1d1369e66a9c4e7f6ebfc04c
https://github.com/getsentry/sentry-python/tree/96df8c1c08768d7f1d1369e66a9c4e7f6ebfc04c
fix(openai-agents): correct span data assignment for tool execution outputhttps://github.com/getsentry/sentry-python/pull/4875/commits/99b1ddb643c217449a2eaa8f5e11cd6ee474b45d
https://github.com/constantinius
constantiniushttps://github.com/getsentry/sentry-python/commits?author=constantinius
99b1ddbhttps://github.com/getsentry/sentry-python/pull/4875/commits/99b1ddb643c217449a2eaa8f5e11cd6ee474b45d
https://github.com/getsentry/sentry-python/tree/99b1ddb643c217449a2eaa8f5e11cd6ee474b45d
fix(openai-agents): refactor span data assignment to use set_data_normalized for tool executionhttps://github.com/getsentry/sentry-python/pull/4875/commits/b219cd8ae4c52c5eff6793c0efa6846a3419bd31
https://github.com/constantinius
constantiniushttps://github.com/getsentry/sentry-python/commits?author=constantinius
b219cd8https://github.com/getsentry/sentry-python/pull/4875/commits/b219cd8ae4c52c5eff6793c0efa6846a3419bd31
https://github.com/getsentry/sentry-python/tree/b219cd8ae4c52c5eff6793c0efa6846a3419bd31
test(integrations): add tests for MCP Tool call spanshttps://github.com/getsentry/sentry-python/pull/4875/commits/3012e3a8f75b5dd395663b85556daf7d1ea01f41
https://github.com/constantinius
constantiniushttps://github.com/getsentry/sentry-python/commits?author=constantinius
3012e3ahttps://github.com/getsentry/sentry-python/pull/4875/commits/3012e3a8f75b5dd395663b85556daf7d1ea01f41
https://github.com/getsentry/sentry-python/tree/3012e3a8f75b5dd395663b85556daf7d1ea01f41
test(openai-agents): fix some testshttps://github.com/getsentry/sentry-python/pull/4875/commits/94a369519dfd075009c0cb59fe17e3849b9e57a8
https://github.com/constantinius
constantiniushttps://github.com/getsentry/sentry-python/commits?author=constantinius
94a3695https://github.com/getsentry/sentry-python/pull/4875/commits/94a369519dfd075009c0cb59fe17e3849b9e57a8
https://github.com/getsentry/sentry-python/tree/94a369519dfd075009c0cb59fe17e3849b9e57a8
test(openai-agents): fix testshttps://github.com/getsentry/sentry-python/pull/4875/commits/58027509fd39fe7838e6da78ccd8a4baf20a0956
https://github.com/constantinius
constantiniushttps://github.com/getsentry/sentry-python/commits?author=constantinius
5802750https://github.com/getsentry/sentry-python/pull/4875/commits/58027509fd39fe7838e6da78ccd8a4baf20a0956
https://github.com/getsentry/sentry-python/tree/58027509fd39fe7838e6da78ccd8a4baf20a0956
Update tests/integrations/openai_agents/test_openai_agents.pyhttps://github.com/getsentry/sentry-python/pull/4875/commits/c485fde4732d4418679221cabdf663b12b1306cb
constantiniushttps://github.com/getsentry/sentry-python/commits?author=constantinius
sentrivanahttps://github.com/getsentry/sentry-python/commits?author=sentrivana
c485fdehttps://github.com/getsentry/sentry-python/pull/4875/commits/c485fde4732d4418679221cabdf663b12b1306cb
https://github.com/getsentry/sentry-python/tree/c485fde4732d4418679221cabdf663b12b1306cb
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

Viewport: width=device-width


URLs of crawlers that visited me.