René's URL Explorer Experiment


Title: Add support for OpenAi `responses` API by antonpirker · Pull Request #4564 · getsentry/sentry-python · GitHub

Open Graph Title: Add support for OpenAi `responses` API by antonpirker · Pull Request #4564 · getsentry/sentry-python

X Title: Add support for OpenAi `responses` API by antonpirker · Pull Request #4564 · getsentry/sentry-python

Description: Add support for the new preferred way of using OpenAI, the /responses API (see https://platform.openai.com/docs/guides/responses-vs-chat-completions) Also makes sure the current span is captured when an error is raised.

Open Graph Description: Add support for the new preferred way of using OpenAI, the /responses API (see https://platform.openai.com/docs/guides/responses-vs-chat-completions) Also makes sure the current span is captured wh...

X Description: Add support for the new preferred way of using OpenAI, the /responses API (see https://platform.openai.com/docs/guides/responses-vs-chat-completions) Also makes sure the current span is captured wh...

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

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/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:25c58982-4165-2bfb-d7fd-e39a4f5a523f
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idBCF0:14700E:40998B:538F1F:6B00D4AA
html-safe-nonce9350a1e2b1c7407bf8ebd2d43dd678a55a14e0135b7d966bf90001c27c10c456
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCQ0YwOjE0NzAwRTo0MDk5OEI6NTM4RjFGOjZCMDBENEFBIiwidmlzaXRvcl9pZCI6IjU3NjA5MzU1NzY4OTk0NzQ2MDIiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmacbf08edbfe53992e6f006e6930ad5fc8a7b7085b154f4960936d97ef4f1b72c2b
hovercard-subject-tagpull_request:2652844035
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/files
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/getsentry/sentry-python/pull/4564/files
twitter:imagehttps://avatars.githubusercontent.com/u/202325?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/202325?s=400&v=4
og:image:altAdd support for the new preferred way of using OpenAI, the /responses API (see https://platform.openai.com/docs/guides/responses-vs-chat-completions) Also makes sure the current span is captured wh...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
Nonea481f62a1e04c9b9bdcb5628230682c66d59006f5b13b080f79cba84a176905b
turbo-cache-controlno-preview
diff-viewunified
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 full-width
disable-turbotrue
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release84c8c5cc25e2fb7f2308428458538436baecc6d2
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/getsentry/sentry-python/pull/4564/files#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fgetsentry%2Fsentry-python%2Fpull%2F4564%2Ffiles
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%2F4564%2Ffiles
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%2Ffiles&source=header-repo&source_repo=getsentry%2Fsentry-python
Reloadhttps://github.com/getsentry/sentry-python/pull/4564/files
Reloadhttps://github.com/getsentry/sentry-python/pull/4564/files
Reloadhttps://github.com/getsentry/sentry-python/pull/4564/files
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
Sign up for GitHub https://github.com/signup?return_to=%2Fgetsentry%2Fsentry-python%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2Fgetsentry%2Fsentry-python%2Fissues%2Fnew%2Fchoose
antonpirkerhttps://github.com/antonpirker
antonpirker/openai-overhaulhttps://github.com/getsentry/sentry-python/tree/antonpirker/openai-overhaul
antonpirker/openai-responses-apihttps://github.com/getsentry/sentry-python/tree/antonpirker/openai-responses-api
Conversation 5 https://github.com/getsentry/sentry-python/pull/4564
Commits 22 https://github.com/getsentry/sentry-python/pull/4564/commits
Checks 0 https://github.com/getsentry/sentry-python/pull/4564/checks
Files changed https://github.com/getsentry/sentry-python/pull/4564/files
Please reload this pagehttps://github.com/getsentry/sentry-python/pull/4564/files
Add support for OpenAi responses API https://github.com/getsentry/sentry-python/pull/4564/files#top
Show all changes 22 commits https://github.com/getsentry/sentry-python/pull/4564/files
7fc847a commit from other branch. needs cleanup antonpirker Jul 9, 2025 https://github.com/getsentry/sentry-python/pull/4564/commits/7fc847a7347829b2b93c5d7484e799040851fe4d
762a9ea Merge branch 'antonpirker/openai-overhaul' into antonpirker/openai-re… antonpirker Jul 15, 2025 https://github.com/getsentry/sentry-python/pull/4564/commits/762a9ea1e7a89b75d8509d17e17cddea6d3bc8c2
281005f cleanup antonpirker Jul 15, 2025 https://github.com/getsentry/sentry-python/pull/4564/commits/281005f47da23f997fe25d07ffba4af1ef474d3e
fc2a794 Merge branch 'antonpirker/openai-overhaul' into antonpirker/openai-re… antonpirker Jul 15, 2025 https://github.com/getsentry/sentry-python/pull/4564/commits/fc2a7947da443a1a7ac51eef0d9e85641fa82009
28ff863 Only patch Respones api when existing (was introduced in v1.66.0) antonpirker Jul 21, 2025 https://github.com/getsentry/sentry-python/pull/4564/commits/28ff8636da2c78dd1b0618d9e39a9ee845ae9691
b704bd0 Merge branch 'master' into antonpirker/openai-responses-api antonpirker Jul 21, 2025 https://github.com/getsentry/sentry-python/pull/4564/commits/b704bd06ef56b218479c05c301ccf074546b21b0
671b77c Add tests antonpirker Jul 21, 2025 https://github.com/getsentry/sentry-python/pull/4564/commits/671b77c93f97856a8f7db53148e8b44d6b6d1d89
c6b9e3a Do not run tests in openai versions not supporting responses api antonpirker Jul 21, 2025 https://github.com/getsentry/sentry-python/pull/4564/commits/c6b9e3ae05e437a90441e3ed628f8833e541adf3
bf34389 Fix tests antonpirker Jul 21, 2025 https://github.com/getsentry/sentry-python/pull/4564/commits/bf343890f37cdeb1a4320d6edacd914502d580f2
369eff3 Test error case antonpirker Jul 21, 2025 https://github.com/getsentry/sentry-python/pull/4564/commits/369eff3adbc1e2b6e126897f0cf43f4a5bc629b1
2aa633d temp antonpirker Jul 21, 2025 https://github.com/getsentry/sentry-python/pull/4564/commits/2aa633df80b67bde6a55322c72e590972cb6a83f
a7a5af3 Merge branch 'antonpirker/openai-overhaul' into antonpirker/openai-re… antonpirker Jul 21, 2025 https://github.com/getsentry/sentry-python/pull/4564/commits/a7a5af320510e8bb3b4ae510e08156d7af34c6a0
1ef2a21 Antonpirker/OpenAI add async (#4603) antonpirker Jul 21, 2025 https://github.com/getsentry/sentry-python/pull/4564/commits/1ef2a218a991a30eb9699c58327f82fcd04613ab
f2c17e0 rename antonpirker Jul 21, 2025 https://github.com/getsentry/sentry-python/pull/4564/commits/f2c17e0546b5958e979a1a1d734dbcfbc5e4611c
24d1797 cleanup antonpirker Jul 21, 2025 https://github.com/getsentry/sentry-python/pull/4564/commits/24d17979abb604da0d9c2cb2e58a8179c43d0083
64c4120 split out some stuff into separate PR antonpirker Jul 21, 2025 https://github.com/getsentry/sentry-python/pull/4564/commits/64c4120f67ddf0c7f13553fb6e05c1b2ab150267
5a55b6a cleanup antonpirker Jul 21, 2025 https://github.com/getsentry/sentry-python/pull/4564/commits/5a55b6a6538bf32052c361e8d635a4987262c55e
bef3e36 cleanup antonpirker Jul 21, 2025 https://github.com/getsentry/sentry-python/pull/4564/commits/bef3e36652a1bcd9b691bf32d94301227ac804d9
4e16e04 Make sure the span an error occures in is captured antonpirker Jul 21, 2025 https://github.com/getsentry/sentry-python/pull/4564/commits/4e16e04fa32ea1ebfee376116d3f26e27a2df553
c43f5b4 Test async responses api antonpirker Jul 23, 2025 https://github.com/getsentry/sentry-python/pull/4564/commits/c43f5b4d7a78bf0cf5cd8009a70034b77d213d38
ac5eeae Fixed tests antonpirker Jul 23, 2025 https://github.com/getsentry/sentry-python/pull/4564/commits/ac5eeaee0c910a5857866b5cafeb34318f9f6218
39e06ef Apply suggestions from code review antonpirker Jul 23, 2025 https://github.com/getsentry/sentry-python/pull/4564/commits/39e06ef94cdd7bb1857fd0219fb9bb893476558e
Clear filters https://github.com/getsentry/sentry-python/pull/4564/files
Please reload this pagehttps://github.com/getsentry/sentry-python/pull/4564/files
Please reload this pagehttps://github.com/getsentry/sentry-python/pull/4564/files
consts.py https://github.com/getsentry/sentry-python/pull/4564/files#diff-719f41f07f1275f8a1b02085180aa234b257226fc976d776ebef5d8dff9db017
openai.py https://github.com/getsentry/sentry-python/pull/4564/files#diff-8be672624748ac6598fe3d702a6beaf03e1fa6bc3c5f8aeadf68158d401fe34e
test_openai.py https://github.com/getsentry/sentry-python/pull/4564/files#diff-124250cd315dcdeda25b556b766c5053e3b2870d0b0e23d6b3a35eb639bd24cd
sentry_sdk/consts.pyhttps://github.com/getsentry/sentry-python/pull/4564/files#diff-719f41f07f1275f8a1b02085180aa234b257226fc976d776ebef5d8dff9db017
View file https://github.com/getsentry/sentry-python/blob/39e06ef94cdd7bb1857fd0219fb9bb893476558e/sentry_sdk/consts.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/getsentry/sentry-python/pull/4564/{{ revealButtonHref }}
https://github.com/getsentry/sentry-python/pull/4564/files#diff-719f41f07f1275f8a1b02085180aa234b257226fc976d776ebef5d8dff9db017
https://github.com/getsentry/sentry-python/pull/4564/files#diff-719f41f07f1275f8a1b02085180aa234b257226fc976d776ebef5d8dff9db017
sentry_sdk/integrations/openai.pyhttps://github.com/getsentry/sentry-python/pull/4564/files#diff-8be672624748ac6598fe3d702a6beaf03e1fa6bc3c5f8aeadf68158d401fe34e
View file https://github.com/getsentry/sentry-python/blob/39e06ef94cdd7bb1857fd0219fb9bb893476558e/sentry_sdk/integrations/openai.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/getsentry/sentry-python/pull/4564/{{ revealButtonHref }}
https://github.com/getsentry/sentry-python/pull/4564/files#diff-8be672624748ac6598fe3d702a6beaf03e1fa6bc3c5f8aeadf68158d401fe34e
https://github.com/getsentry/sentry-python/pull/4564/files#diff-8be672624748ac6598fe3d702a6beaf03e1fa6bc3c5f8aeadf68158d401fe34e
https://github.com/getsentry/sentry-python/pull/4564/files#diff-8be672624748ac6598fe3d702a6beaf03e1fa6bc3c5f8aeadf68158d401fe34e
https://github.com/getsentry/sentry-python/pull/4564/files#diff-8be672624748ac6598fe3d702a6beaf03e1fa6bc3c5f8aeadf68158d401fe34e
https://github.com/getsentry/sentry-python/pull/4564/files#diff-8be672624748ac6598fe3d702a6beaf03e1fa6bc3c5f8aeadf68158d401fe34e
https://github.com/getsentry/sentry-python/pull/4564/files#diff-8be672624748ac6598fe3d702a6beaf03e1fa6bc3c5f8aeadf68158d401fe34e
https://github.com/getsentry/sentry-python/pull/4564/files#diff-8be672624748ac6598fe3d702a6beaf03e1fa6bc3c5f8aeadf68158d401fe34e
https://github.com/getsentry/sentry-python/pull/4564/files#diff-8be672624748ac6598fe3d702a6beaf03e1fa6bc3c5f8aeadf68158d401fe34e
https://github.com/getsentry/sentry-python/pull/4564/files#diff-8be672624748ac6598fe3d702a6beaf03e1fa6bc3c5f8aeadf68158d401fe34e
https://github.com/getsentry/sentry-python/pull/4564/files#diff-8be672624748ac6598fe3d702a6beaf03e1fa6bc3c5f8aeadf68158d401fe34e
https://github.com/getsentry/sentry-python/pull/4564/files#diff-8be672624748ac6598fe3d702a6beaf03e1fa6bc3c5f8aeadf68158d401fe34e
https://github.com/getsentry/sentry-python/pull/4564/files#diff-8be672624748ac6598fe3d702a6beaf03e1fa6bc3c5f8aeadf68158d401fe34e
https://github.com/getsentry/sentry-python/pull/4564/files#diff-8be672624748ac6598fe3d702a6beaf03e1fa6bc3c5f8aeadf68158d401fe34e
https://github.com/getsentry/sentry-python/pull/4564/files#diff-8be672624748ac6598fe3d702a6beaf03e1fa6bc3c5f8aeadf68158d401fe34e
https://github.com/getsentry/sentry-python/pull/4564/files#diff-8be672624748ac6598fe3d702a6beaf03e1fa6bc3c5f8aeadf68158d401fe34e
https://github.com/getsentry/sentry-python/pull/4564/files#diff-8be672624748ac6598fe3d702a6beaf03e1fa6bc3c5f8aeadf68158d401fe34e
https://github.com/getsentry/sentry-python/pull/4564/files#diff-8be672624748ac6598fe3d702a6beaf03e1fa6bc3c5f8aeadf68158d401fe34e
https://github.com/getsentry/sentry-python/pull/4564/files#diff-8be672624748ac6598fe3d702a6beaf03e1fa6bc3c5f8aeadf68158d401fe34e
https://github.com/getsentry/sentry-python/pull/4564/files#diff-8be672624748ac6598fe3d702a6beaf03e1fa6bc3c5f8aeadf68158d401fe34e
Please reload this pagehttps://github.com/getsentry/sentry-python/pull/4564/files
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.