| react-profiling | 0 |
| react-import-map | react,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/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:966ee4a3-65f4-0783-de70-d745988338e7 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | CB94:2EF3:370684:49E888:6B008A78 |
| html-safe-nonce | 77d3613efce57095b49561215f639cd86138a30f58266ac8d1704506596ae8a5 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDQjk0OjJFRjM6MzcwNjg0OjQ5RTg4ODo2QjAwOEE3OCIsInZpc2l0b3JfaWQiOiI1MTcxMTA2Njc0NDYyNzIyNjgwIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 74f1b568daa85d4f01f4f6a9a2f4cbd9f650c8ed12ee64284cf2220c5a640a14 |
| hovercard-subject-tag | pull_request:2873620344 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | ///pull_requests/show/files |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/getsentry/sentry-python/pull/4875/files |
| twitter:image | https://avatars.githubusercontent.com/u/1109799?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/1109799?s=400&v=4 |
| og:image:alt | 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... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 4d3d8e50f02c1d7bf86d5acfa1d3bfe9366abd6528a6b429eb07a168429d2b61 |
| turbo-cache-control | no-preview |
| diff-view | unified |
| go-import | github.com/getsentry/sentry-python git https://github.com/getsentry/sentry-python.git |
| octolytics-dimension-user_id | 1396951 |
| octolytics-dimension-user_login | getsentry |
| octolytics-dimension-repository_id | 137814779 |
| octolytics-dimension-repository_nwo | getsentry/sentry-python |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 137814779 |
| octolytics-dimension-repository_network_root_nwo | getsentry/sentry-python |
| turbo-body-classes | logged-out env-production page-responsive full-width |
| disable-turbo | true |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | db758f8e02b8257935fb03edf81a3e76eb3abd11 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| Skip to content | https://github.com/getsentry/sentry-python/pull/4875/files#start-of-content |
| https://github.com/ |
| Sign in | https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fgetsentry%2Fsentry-python%2Fpull%2F4875%2Ffiles |
| GitHubRepository hosting, code review, and collaboration | https://github.com/platform |
| CopilotAI coding agent for tasks, projects, and automated work | https://github.com/features/copilot |
| ActionsCI/CD and automation | https://github.com/features/actions |
| Code QualityQuality analysis, fixes, and enforcement | https://github.com/features/code-quality |
| CodespacesCloud development environments | https://github.com/features/codespaces |
| Code SecurityVulnerability detection and remediation | https://github.com/security/advanced-security/code-security |
| Secret ProtectionSecret scanning and leak prevention | https://github.com/security/advanced-security/secret-protection |
| All Features | https://github.com/features |
| Documentation | https://docs.github.com/en |
| Training | https://learn.github.com/skills |
| Certifications | https://learn.github.com/credentials |
| Build with Copilot | https://github.com/features/ai |
| Customize Copilot | https://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview |
| Integrations | https://github.com/marketplace |
| Trending repos | https://github.com/trending |
| GitHub Sponsors | https://github.com/open-source/sponsors |
| Developer articles | https://github.com/resources/articles |
| ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place. | https://github.blog/changelog/ |
| Enterprises | https://github.com/enterprise |
| Team | https://github.com/team |
| Startups | https://github.com/enterprise/startups |
| Nonprofits | https://github.com/solutions/industry/nonprofits |
| Healthcare | https://github.com/solutions/industry/healthcare |
| Financial services | https://github.com/solutions/industry/financial-services |
| Manufacturing | https://github.com/solutions/industry/manufacturing |
| Government | https://github.com/solutions/industry/government |
| See all industries | https://github.com/solutions/industry |
| Why GitHub | https://github.com/why-github |
| Customer Stories | https://github.com/customer-stories |
| Business insights | https://github.com/solutions/executive-insights |
| Trust Center | https://github.com/trust-center |
| GitHub Advanced SecurityEnterprise-grade code security | https://github.com/security/advanced-security |
| Copilot for businessEnterprise-grade AI features | https://github.com/features/copilot/copilot-business |
| Premium SupportEnterprise-grade 24/7 support | https://github.com/enterprise/premium-support |
| Documentation | https://docs.github.com/en |
| Resource center | https://github.com/resources |
| Blog | https://github.blog/ |
| Events & webinars | https://github.com/resources/events |
| Community Forum | https://github.com/orgs/community/discussions |
| Customer Stories | https://github.com/customer-stories |
| Integrations | https://github.com/marketplace |
| Customer support | https://help.github.com/ |
| Training | https://learn.github.com/skills |
| GitHub Status | https://www.githubstatus.com/ |
| About | https://github.com/about |
| Partners | https://github.com/partners |
| Changelog | https://github.blog/changelog/ |
| GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub. | https://githubuniverse.com/ |
| Pricing | https://github.com/pricing |
| Sign in | https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fgetsentry%2Fsentry-python%2Fpull%2F4875%2Ffiles |
| Sign up | https://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%2Ffiles&source=header-repo&source_repo=getsentry%2Fsentry-python |
| Reload | https://github.com/getsentry/sentry-python/pull/4875/files |
| Reload | https://github.com/getsentry/sentry-python/pull/4875/files |
| Reload | https://github.com/getsentry/sentry-python/pull/4875/files |
| getsentry | https://github.com/getsentry |
| sentry-python | https://github.com/getsentry/sentry-python |
| Code | https://github.com/getsentry/sentry-python |
| Issues345 (345) | https://github.com/getsentry/sentry-python/issues |
| Pull requests41 (41) | https://github.com/getsentry/sentry-python/pulls |
| Discussions | https://github.com/getsentry/sentry-python/discussions |
| Actions | https://github.com/getsentry/sentry-python/actions |
| Security and quality2 (2) | https://github.com/getsentry/sentry-python/security |
| Insights | https://github.com/getsentry/sentry-python/insights |
| Sign up for GitHub
| https://github.com/signup?return_to=%2Fgetsentry%2Fsentry-python%2Fissues%2Fnew%2Fchoose |
| terms of service | https://docs.github.com/terms |
| privacy statement | https://docs.github.com/privacy |
| Sign in | https://github.com/login?return_to=%2Fgetsentry%2Fsentry-python%2Fissues%2Fnew%2Fchoose |
| constantinius | https://github.com/constantinius |
| master | https://github.com/getsentry/sentry-python/tree/master |
| constantinius/fix/openai-agents/mcp-execute-tool-spans | https://github.com/getsentry/sentry-python/tree/constantinius/fix/openai-agents/mcp-execute-tool-spans |
|
Conversation
11
| https://github.com/getsentry/sentry-python/pull/4875 |
|
Commits
8
| https://github.com/getsentry/sentry-python/pull/4875/commits |
|
Checks
0
| https://github.com/getsentry/sentry-python/pull/4875/checks |
|
Files changed
| https://github.com/getsentry/sentry-python/pull/4875/files |
| Please reload this page | https://github.com/getsentry/sentry-python/pull/4875/files |
|
fix(openai-agents): also emit spans for MCP tool calls done by the LLM
| https://github.com/getsentry/sentry-python/pull/4875/files#top |
|
Show all changes
8 commits
| https://github.com/getsentry/sentry-python/pull/4875/files |
|
6cb7b43
fix(openai-agents): also emit spans for MCP tool calls done by the LLM
constantinius Sep 30, 2025
| https://github.com/getsentry/sentry-python/pull/4875/commits/6cb7b43591471c26196e0ca9ef4099f39f431224 |
|
96df8c1
fix(openai-agents): improve span handling in MCP tool execution
constantinius Sep 30, 2025
| https://github.com/getsentry/sentry-python/pull/4875/commits/96df8c1c08768d7f1d1369e66a9c4e7f6ebfc04c |
|
99b1ddb
fix(openai-agents): correct span data assignment for tool execution o…
constantinius Oct 1, 2025
| https://github.com/getsentry/sentry-python/pull/4875/commits/99b1ddb643c217449a2eaa8f5e11cd6ee474b45d |
|
b219cd8
fix(openai-agents): refactor span data assignment to use set_data_nor…
constantinius Oct 1, 2025
| https://github.com/getsentry/sentry-python/pull/4875/commits/b219cd8ae4c52c5eff6793c0efa6846a3419bd31 |
|
3012e3a
test(integrations): add tests for MCP Tool call spans
constantinius Oct 1, 2025
| https://github.com/getsentry/sentry-python/pull/4875/commits/3012e3a8f75b5dd395663b85556daf7d1ea01f41 |
|
94a3695
test(openai-agents): fix some tests
constantinius Oct 2, 2025
| https://github.com/getsentry/sentry-python/pull/4875/commits/94a369519dfd075009c0cb59fe17e3849b9e57a8 |
|
5802750
test(openai-agents): fix tests
constantinius Oct 2, 2025
| https://github.com/getsentry/sentry-python/pull/4875/commits/58027509fd39fe7838e6da78ccd8a4baf20a0956 |
|
c485fde
Update tests/integrations/openai_agents/test_openai_agents.py
constantinius Oct 2, 2025
| https://github.com/getsentry/sentry-python/pull/4875/commits/c485fde4732d4418679221cabdf663b12b1306cb |
|
Clear filters
| https://github.com/getsentry/sentry-python/pull/4875/files |
| Please reload this page | https://github.com/getsentry/sentry-python/pull/4875/files |
| Please reload this page | https://github.com/getsentry/sentry-python/pull/4875/files |
|
ai_client.py
| https://github.com/getsentry/sentry-python/pull/4875/files#diff-b01bf87633a777593a593d2471a4a446e76af6b91ee2625401b3a415bd24d170 |
|
utils.py
| https://github.com/getsentry/sentry-python/pull/4875/files#diff-17339ab388e25807056ef77733200c6040af786fcf6cbe379cb58b2049cde38c |
|
test_openai_agents.py
| https://github.com/getsentry/sentry-python/pull/4875/files#diff-3994ad06a0ebc1f49b0088b4c7210c4804d91e21c4886e98cf02b0da097dc06f |
|
| https://github.com/getsentry/sentry-python/blob/master/.github/CODEOWNERS#L1 |
| sentry_sdk/integrations/openai_agents/spans/ai_client.py | https://github.com/getsentry/sentry-python/pull/4875/files#diff-b01bf87633a777593a593d2471a4a446e76af6b91ee2625401b3a415bd24d170 |
|
View file
| https://github.com/getsentry/sentry-python/blob/c485fde4732d4418679221cabdf663b12b1306cb/sentry_sdk/integrations/openai_agents/spans/ai_client.py |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/getsentry/sentry-python/pull/4875/{{ revealButtonHref }} |
|
| https://github.com/getsentry/sentry-python/pull/4875/files#diff-b01bf87633a777593a593d2471a4a446e76af6b91ee2625401b3a415bd24d170 |
|
| https://github.com/getsentry/sentry-python/pull/4875/files#diff-b01bf87633a777593a593d2471a4a446e76af6b91ee2625401b3a415bd24d170 |
|
| https://github.com/getsentry/sentry-python/pull/4875/files#diff-b01bf87633a777593a593d2471a4a446e76af6b91ee2625401b3a415bd24d170 |
|
| https://github.com/getsentry/sentry-python/blob/master/.github/CODEOWNERS#L1 |
| sentry_sdk/integrations/openai_agents/utils.py | https://github.com/getsentry/sentry-python/pull/4875/files#diff-17339ab388e25807056ef77733200c6040af786fcf6cbe379cb58b2049cde38c |
|
View file
| https://github.com/getsentry/sentry-python/blob/c485fde4732d4418679221cabdf663b12b1306cb/sentry_sdk/integrations/openai_agents/utils.py |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/getsentry/sentry-python/pull/4875/{{ revealButtonHref }} |
|
| https://github.com/getsentry/sentry-python/pull/4875/files#diff-17339ab388e25807056ef77733200c6040af786fcf6cbe379cb58b2049cde38c |
|
| https://github.com/getsentry/sentry-python/pull/4875/files#diff-17339ab388e25807056ef77733200c6040af786fcf6cbe379cb58b2049cde38c |
| cursor | https://github.com/apps/cursor |
| Oct 1, 2025 | https://github.com/getsentry/sentry-python/pull/4875/files#r2394104339 |
| Learn more | https://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment |
| sentry_sdk/integrations/openai_agents/spans/ai_client.py#L40-L41 | https://github.com/getsentry/sentry-python/bl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1LTI4MjAzMWJlY2Y0OCIsImVuY3J5cHRpb25LZXkiOiI1a3JPWHFOYWlHZkJfU2pBQVZwb3c2dndkYmxwRkpQM3Jjd3Zzc09oS0Y4IiwiYnJhbmNoIjoiY29uc3RhbnRpbml1cy9maXgvb3BlbmFpLWFnZW50cy9tY3AtZXhlY3V0ZS10b29sLXNwYW5zIiwicmVwb093bmVyIjoiZ2V0c2VudHJ5IiwicmVwb05hbWUiOiJzZW50cnktcHl0aG9uIiwicHJOdW1iZXIiOjQ4NzUsImNvbW1pdFNoYSI6IjMwMTJlM2E4Zjc1YjVkZDM5NTY2M2I4NTU1NmRhZjdkMWVhMDFmNDEifSwiaWF0IjoxNzU5MzE0Mjc4LCJleHAiOjE3NTk5MTkwNzh9.Nzf2wOOqzZKWqZMqmz_KH0cbDM0J4UJZSFL8MRUljgG15DazL8_haI90bWUwdMvdZ_utb1pG6qr32l1gJrQgheM_jYE4aPEYQmZH_uFKwzAbEOokTZ-BWzK_Jee3CkpxfxJe2FuNZ-N4kFDsrl_QLq-HgmD4Kb_OoVAdavoey74BBqmSYJ6PGr9uTEVVYj_o4By2hvF_ZNDc9KSOZIxP_l7NcGK0AeC7-yvggL7dDfnIEl0pVZhmCPpwhBC94CGk_pvFbJAGH36ZqzMkpPvPLR6-xngA6ENZek224eJIUoE50W6URep1FOWO07li0Addh841c0APTDbI7r3wYyRUeg |
| Please reload this page | https://github.com/getsentry/sentry-python/pull/4875/files |
|
| https://github.com/getsentry/sentry-python/blob/master/.github/CODEOWNERS#L1 |
| tests/integrations/openai_agents/test_openai_agents.py | https://github.com/getsentry/sentry-python/pull/4875/files#diff-3994ad06a0ebc1f49b0088b4c7210c4804d91e21c4886e98cf02b0da097dc06f |
|
View file
| https://github.com/getsentry/sentry-python/blob/c485fde4732d4418679221cabdf663b12b1306cb/tests/integrations/openai_agents/test_openai_agents.py |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/getsentry/sentry-python/pull/4875/{{ revealButtonHref }} |
|
| https://github.com/getsentry/sentry-python/pull/4875/files#diff-3994ad06a0ebc1f49b0088b4c7210c4804d91e21c4886e98cf02b0da097dc06f |
|
| https://github.com/getsentry/sentry-python/pull/4875/files#diff-3994ad06a0ebc1f49b0088b4c7210c4804d91e21c4886e98cf02b0da097dc06f |
|
| https://github.com/getsentry/sentry-python/pull/4875/files#diff-3994ad06a0ebc1f49b0088b4c7210c4804d91e21c4886e98cf02b0da097dc06f |
|
| https://github.com/getsentry/sentry-python/pull/4875/files#diff-3994ad06a0ebc1f49b0088b4c7210c4804d91e21c4886e98cf02b0da097dc06f |
|
| https://github.com |
| Terms | https://docs.github.com/site-policy/github-terms/github-terms-of-service |
| Privacy | https://docs.github.com/site-policy/privacy-policies/github-privacy-statement |
| Security | https://github.com/security |
| Status | https://www.githubstatus.com/ |
| Community | https://github.community/ |
| Docs | https://docs.github.com/ |
| Contact | https://support.github.com?tags=dotcom-footer |