René's URL Explorer Experiment


Title: fix(openai-agents): Isolate agent run by sentrivana · Pull Request #4720 · getsentry/sentry-python · GitHub

Open Graph Title: fix(openai-agents): Isolate agent run by sentrivana · Pull Request #4720 · getsentry/sentry-python

X Title: fix(openai-agents): Isolate agent run by sentrivana · Pull Request #4720 · 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: It looks like we're running into #4718 (and probably #4690) because the different agent runs are not properly isolated. This only seems to be a problem when multiple agent runs are awaited at o...

X Description: It looks like we're running into #4718 (and probably #4690) because the different agent runs are not properly isolated. This only seems to be a problem when multiple agent runs are awaited ...

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

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/_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:8aab63de-a43a-cdc7-3ece-987168fa3b92
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idA1D8:235389:4DAA5E:686937:6B008F38
html-safe-noncefffeb6e9f79afb743cfdb530d60df3e46eeb9a8b02a2e4dc4bb32e7525f34105
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBMUQ4OjIzNTM4OTo0REFBNUU6Njg2OTM3OjZCMDA4RjM4IiwidmlzaXRvcl9pZCI6IjgwNjI4NjY3NDI3ODQ4NTU4NjQiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmacb05df0d2ab249d038c1475f3fbb99669b665c91ec08b440c8bb4a9a943b1d47e
hovercard-subject-tagpull_request:2771761190
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/getsentry/sentry-python/4720/pull_request_layout
twitter:imagehttps://opengraph.githubassets.com/a6ff9501e1f47c5ab57821fc1a848dcd4cdaa76668028e3255806d8a97caa510/getsentry/sentry-python/pull/4720
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/a6ff9501e1f47c5ab57821fc1a848dcd4cdaa76668028e3255806d8a97caa510/getsentry/sentry-python/pull/4720
og:image:altIt looks like we're running into #4718 (and probably #4690) because the different agent runs are not properly isolated. This only seems to be a problem when multiple agent runs are awaited at o...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamesentrivana
hostnamegithub.com
expected-hostnamegithub.com
Nonec710a5cb5c47be60abfe6e8410436d409906979dbed614ef09f29c60f5535b08
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
releasebe616a2a6ec1c609d6e002896dff5352d5c5f28b
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-namepull-requests

Links:

Skip to contenthttps://github.com/getsentry/sentry-python/pull/4720#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fgetsentry%2Fsentry-python%2Fpull%2F4720
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%2F4720
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=getsentry%2Fsentry-python
Reloadhttps://github.com/getsentry/sentry-python/pull/4720
Reloadhttps://github.com/getsentry/sentry-python/pull/4720
Reloadhttps://github.com/getsentry/sentry-python/pull/4720
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 requests41 (41)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
sentrivanahttps://github.com/sentrivana
masterhttps://github.com/getsentry/sentry-python/tree/master
ivana/isolate-openai-agents-runnerhttps://github.com/getsentry/sentry-python/tree/ivana/isolate-openai-agents-runner
Conversationhttps://github.com/getsentry/sentry-python/pull/4720
Commits5 (5)https://github.com/getsentry/sentry-python/pull/4720/commits
Checkshttps://github.com/getsentry/sentry-python/pull/4720/checks
Files changedhttps://github.com/getsentry/sentry-python/pull/4720/files
fix(openai-agents): Isolate agent runhttps://github.com/getsentry/sentry-python/pull/4720#top
sentrivanahttps://github.com/sentrivana
masterhttps://github.com/getsentry/sentry-python/tree/master
ivana/isolate-openai-agents-runnerhttps://github.com/getsentry/sentry-python/tree/ivana/isolate-openai-agents-runner
https://github.com/sentrivana
sentrivanahttps://github.com/sentrivana
Aug 25, 2025https://github.com/getsentry/sentry-python/pull/4720#issue-3351768494
#4718https://github.com/getsentry/sentry-python/issues/4718
#4690https://github.com/getsentry/sentry-python/issues/4690
Please reload this pagehttps://github.com/getsentry/sentry-python/pull/4720
https://github.com/sentrivana
fix(openai-agents): Isolate agent runhttps://github.com/getsentry/sentry-python/pull/4720/commits/0d543f5df8213ba82303a335b4b99edb8814ac8f
0d543f5https://github.com/getsentry/sentry-python/pull/4720/commits/0d543f5df8213ba82303a335b4b99edb8814ac8f
https://github.com/apps/codecov
codecovhttps://github.com/apps/codecov
Aug 25, 2025https://github.com/getsentry/sentry-python/pull/4720#issuecomment-3220185198
Please reload this pagehttps://github.com/getsentry/sentry-python/pull/4720
Codecovhttps://app.codecov.io/gh/getsentry/sentry-python/pull/4720?dropdown=coverage&src=pr&el=h1&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=getsentry
28d0dddhttps://app.codecov.io/gh/getsentry/sentry-python/commit/28d0dddf41b7c10f9ba056aee659d2da4d490fbe?dropdown=coverage&el=desc&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=getsentry
23db0c8https://app.codecov.io/gh/getsentry/sentry-python/commit/23db0c8f54396bb8d1d35326b188e3786a4199cf?dropdown=coverage&el=desc&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=getsentry
Files with missing lineshttps://app.codecov.io/gh/getsentry/sentry-python/pull/4720?dropdown=coverage&src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=getsentry
...y_sdk/integrations/openai_agents/patches/runner.pyhttps://app.codecov.io/gh/getsentry/sentry-python/pull/4720?src=pr&el=tree&filepath=sentry_sdk%2Fintegrations%2Fopenai_agents%2Fpatches%2Frunner.py&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=getsentry#diff-c2VudHJ5X3Nkay9pbnRlZ3JhdGlvbnMvb3BlbmFpX2FnZW50cy9wYXRjaGVzL3J1bm5lci5weQ==
0 Missing and 1 partial ⚠️ https://app.codecov.io/gh/getsentry/sentry-python/pull/4720?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=getsentry
Files with missing lineshttps://app.codecov.io/gh/getsentry/sentry-python/pull/4720?dropdown=coverage&src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=getsentry
...dk/integrations/openai_agents/patches/agent_run.pyhttps://app.codecov.io/gh/getsentry/sentry-python/pull/4720?src=pr&el=tree&filepath=sentry_sdk%2Fintegrations%2Fopenai_agents%2Fpatches%2Fagent_run.py&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=getsentry#diff-c2VudHJ5X3Nkay9pbnRlZ3JhdGlvbnMvb3BlbmFpX2FnZW50cy9wYXRjaGVzL2FnZW50X3J1bi5weQ==
...y_sdk/integrations/openai_agents/patches/runner.pyhttps://app.codecov.io/gh/getsentry/sentry-python/pull/4720?src=pr&el=tree&filepath=sentry_sdk%2Fintegrations%2Fopenai_agents%2Fpatches%2Frunner.py&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=getsentry#diff-c2VudHJ5X3Nkay9pbnRlZ3JhdGlvbnMvb3BlbmFpX2FnZW50cy9wYXRjaGVzL3J1bm5lci5weQ==
2 files with indirect coverage changeshttps://app.codecov.io/gh/getsentry/sentry-python/pull/4720/indirect-changes?src=pr&el=tree-more&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=getsentry
Please reload this pagehttps://github.com/getsentry/sentry-python/pull/4720
https://github.com/sentrivana
sentrivanahttps://github.com/sentrivana
Aug 25, 2025 https://github.com/getsentry/sentry-python/pull/4720#ref-issue-3351108712
'Span' object has no attribute '_context_manager_state' #4718 https://github.com/getsentry/sentry-python/issues/4718
https://github.com/sentrivana
sentrivanahttps://github.com/sentrivana
Aug 25, 2025https://github.com/getsentry/sentry-python/pull/4720#event-19322640969
'Span' object has no attribute '_context_manager_state' #4718 https://github.com/getsentry/sentry-python/issues/4718
https://github.com/sentrivana
.https://github.com/getsentry/sentry-python/pull/4720/commits/09770fb1cf147082dee9cf41cb40ef883f6b311f
09770fbhttps://github.com/getsentry/sentry-python/pull/4720/commits/09770fb1cf147082dee9cf41cb40ef883f6b311f
https://github.com/sentrivana
sentrivanahttps://github.com/sentrivana
August 25, 2025 14:40https://github.com/getsentry/sentry-python/pull/4720#event-19324089177
https://github.com/sentrivana
sentrivanahttps://github.com/sentrivana
code ownerhttps://github.com/getsentry/sentry-python/blob/28d0dddf41b7c10f9ba056aee659d2da4d490fbe/.github/CODEOWNERS#L1
August 25, 2025 14:40https://github.com/getsentry/sentry-python/pull/4720#event-19324089443
https://github.com/apps/cursor
Sign in to viewhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fgetsentry%2Fsentry-python%2Fpull%2F4720
Please reload this pagehttps://github.com/getsentry/sentry-python/pull/4720
https://github.com/sentrivana
.https://github.com/getsentry/sentry-python/pull/4720/commits/2ff6efecc22ba9d479ce424b8f2147c3967dedec
2ff6efehttps://github.com/getsentry/sentry-python/pull/4720/commits/2ff6efecc22ba9d479ce424b8f2147c3967dedec
https://github.com/sl0thentr0py
sl0thentr0pyhttps://github.com/sl0thentr0py
Aug 26, 2025 https://github.com/getsentry/sentry-python/pull/4720#pullrequestreview-3153811842
View reviewed changes https://github.com/getsentry/sentry-python/pull/4720/files/2ff6efecc22ba9d479ce424b8f2147c3967dedec
sl0thentr0pyhttps://github.com/sl0thentr0py
https://github.com/getsentry/sentry-python/pull/4720#pullrequestreview-3153811842
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/getsentry/sentry-python/pull/4720
sentrivanahttps://github.com/sentrivana
August 26, 2025 08:41https://github.com/getsentry/sentry-python/pull/4720#commits-pushed-4a52ccf
https://github.com/sentrivana
better testhttps://github.com/getsentry/sentry-python/pull/4720/commits/4a52ccf431ca4fda47d2b95dd574dad4ee545f3a
4a52ccfhttps://github.com/getsentry/sentry-python/pull/4720/commits/4a52ccf431ca4fda47d2b95dd574dad4ee545f3a
https://github.com/sentrivana
commenthttps://github.com/getsentry/sentry-python/pull/4720/commits/23db0c8f54396bb8d1d35326b188e3786a4199cf
23db0c8https://github.com/getsentry/sentry-python/pull/4720/commits/23db0c8f54396bb8d1d35326b188e3786a4199cf
https://github.com/sentrivana
sentrivanahttps://github.com/sentrivana
August 26, 2025 07:46https://github.com/getsentry/sentry-python/pull/4720#event-19337868084
https://github.com/sentrivana
sentrivanahttps://github.com/sentrivana
eee4c4bhttps://github.com/getsentry/sentry-python/commit/eee4c4b0186c8aed964151a8e2af56420b7ad288
Aug 26, 2025https://github.com/getsentry/sentry-python/pull/4720#event-19338016539
https://github.com/sentrivana
sentrivanahttps://github.com/sentrivana
August 26, 2025 07:53https://github.com/getsentry/sentry-python/pull/4720#event-19338016761
Wrap span restoration in __exit__ in capture_internal_exceptions #4719 https://github.com/getsentry/sentry-python/pull/4719
Profiler crashes in FastAPI app using openai-agents #4690 https://github.com/getsentry/sentry-python/issues/4690
https://github.co/hiddenchars
https://github.com/getsentry/sentry-python/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%2Fgetsentry%2Fsentry-python%2Fpull%2F4720
https://github.com/apps/cursor
cursor[bot] https://github.com/apps/cursor
https://github.com/getsentry/sentry-python/pull/4720/files/09770fb1cf147082dee9cf41cb40ef883f6b311f
https://github.com/sl0thentr0py
sl0thentr0py https://github.com/sl0thentr0py
https://github.com/getsentry/sentry-python/pull/4720/files/2ff6efecc22ba9d479ce424b8f2147c3967dedec
Please reload this pagehttps://github.com/getsentry/sentry-python/pull/4720
'Span' object has no attribute '_context_manager_state' https://github.com/getsentry/sentry-python/issues/4718
Please reload this pagehttps://github.com/getsentry/sentry-python/pull/4720
https://github.com/sentrivana
https://github.com/sl0thentr0py
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.