René's URL Explorer Experiment


Title: feat(cloudflare,vercel-edge): Add support for OpenAI instrumentation by andreiborza · Pull Request #17338 · getsentry/sentry-javascript · GitHub

Open Graph Title: feat(cloudflare,vercel-edge): Add support for OpenAI instrumentation by andreiborza · Pull Request #17338 · getsentry/sentry-javascript

X Title: feat(cloudflare,vercel-edge): Add support for OpenAI instrumentation by andreiborza · Pull Request #17338 · getsentry/sentry-javascript

Description: Official Sentry SDKs for JavaScript. Contribute to getsentry/sentry-javascript development by creating an account on GitHub.

Open Graph Description: Adds support for OpenAI manual instrumentation in @sentry/cloudflare and @sentry/vercel-edge. To instrument the OpenAI client, wrap it with Sentry.instrumentOpenAiClient and set recording settings....

X Description: Adds support for OpenAI manual instrumentation in @sentry/cloudflare and @sentry/vercel-edge. To instrument the OpenAI client, wrap it with Sentry.instrumentOpenAiClient and set recording settings....

Opengraph URL: https://github.com/getsentry/sentry-javascript/pull/17338

X: @github

direct link

Domain: github.com

IPv4 address: 140.82.114.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:76c24031-5926-c209-cdd2-5727adc4633b
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idCC3A:3D64F3:4CBC04:6B58CF:6B05BB9C
html-safe-noncedef8020d558d0920b62dce1710329429a956b11f64a79314d548c871774a76ee
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDQzNBOjNENjRGMzo0Q0JDMDQ6NkI1OENGOjZCMDVCQjlDIiwidmlzaXRvcl9pZCI6Ijg2MjcxMDE4Mjc3MzA4ODE0MzYiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmacf92898105f670f508435821fa201a21c8fb80da12b3a4587f31f57f5427afa11
hovercard-subject-tagpull_request:2724200809
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-javascript/17338/pull_request_layout
twitter:imagehttps://opengraph.githubassets.com/24b44c65f3bc84b67a8c241addb2080752acd57b32fd70c4902af5551e681236/getsentry/sentry-javascript/pull/17338
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/24b44c65f3bc84b67a8c241addb2080752acd57b32fd70c4902af5551e681236/getsentry/sentry-javascript/pull/17338
og:image:altAdds support for OpenAI manual instrumentation in @sentry/cloudflare and @sentry/vercel-edge. To instrument the OpenAI client, wrap it with Sentry.instrumentOpenAiClient and set recording settings....
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameandreiborza
hostnamegithub.com
expected-hostnamegithub.com
None708c2f10d746dbcf1dd80dc8309daa7d595df3fce8066244380fc3238618f09c
turbo-cache-controlno-cache
go-importgithub.com/getsentry/sentry-javascript git https://github.com/getsentry/sentry-javascript.git
octolytics-dimension-user_id1396951
octolytics-dimension-user_logingetsentry
octolytics-dimension-repository_id3328572
octolytics-dimension-repository_nwogetsentry/sentry-javascript
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id3328572
octolytics-dimension-repository_network_root_nwogetsentry/sentry-javascript
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
release2a29e3cf4fb57e81fd311774f91f345cc4436f40
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-namepull-requests

Links:

Skip to contenthttps://github.com/getsentry/sentry-javascript/pull/17338#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fgetsentry%2Fsentry-javascript%2Fpull%2F17338
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-javascript%2Fpull%2F17338
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-javascript
Reloadhttps://github.com/getsentry/sentry-javascript/pull/17338
Reloadhttps://github.com/getsentry/sentry-javascript/pull/17338
Reloadhttps://github.com/getsentry/sentry-javascript/pull/17338
getsentryhttps://github.com/getsentry
sentry-javascripthttps://github.com/getsentry/sentry-javascript
Codehttps://github.com/getsentry/sentry-javascript
Issues329 (329)https://github.com/getsentry/sentry-javascript/issues
Pull requests57 (57)https://github.com/getsentry/sentry-javascript/pulls
Discussionshttps://github.com/getsentry/sentry-javascript/discussions
Actionshttps://github.com/getsentry/sentry-javascript/actions
Security and quality7 (7)https://github.com/getsentry/sentry-javascript/security
Insightshttps://github.com/getsentry/sentry-javascript/insights
https://github.com/getsentry/sentry-javascript
andreiborzahttps://github.com/andreiborza
develophttps://github.com/getsentry/sentry-javascript/tree/develop
ab/cf-ve-openaihttps://github.com/getsentry/sentry-javascript/tree/ab/cf-ve-openai
Conversationhttps://github.com/getsentry/sentry-javascript/pull/17338
Commits7 (7)https://github.com/getsentry/sentry-javascript/pull/17338/commits
Checkshttps://github.com/getsentry/sentry-javascript/pull/17338/checks
Files changedhttps://github.com/getsentry/sentry-javascript/pull/17338/files
feat(cloudflare,vercel-edge): Add support for OpenAI instrumentationhttps://github.com/getsentry/sentry-javascript/pull/17338#top
andreiborzahttps://github.com/andreiborza
develophttps://github.com/getsentry/sentry-javascript/tree/develop
ab/cf-ve-openaihttps://github.com/getsentry/sentry-javascript/tree/ab/cf-ve-openai
https://github.com/andreiborza
andreiborzahttps://github.com/andreiborza
Aug 6, 2025https://github.com/getsentry/sentry-javascript/pull/17338#issue-3296488131
Please reload this pagehttps://github.com/getsentry/sentry-javascript/pull/17338
https://github.com/andreiborza
andreiborzahttps://github.com/andreiborza
Lms24https://github.com/Lms24
RulaKhaledhttps://github.com/RulaKhaled
chargomehttps://github.com/chargome
August 6, 2025 12:21https://github.com/getsentry/sentry-javascript/pull/17338#event-19012032030
andreiborzahttps://github.com/andreiborza
August 6, 2025 14:22https://github.com/getsentry/sentry-javascript/pull/17338#commits-pushed-1f8ed69
https://github.com/andreiborza
feat(cloudflare,vercel-edge): Add support for OpenAI instrumentationhttps://github.com/getsentry/sentry-javascript/pull/17338/commits/1f8ed69f126cec32c3cbc05619cf260634c0949a
1f8ed69https://github.com/getsentry/sentry-javascript/pull/17338/commits/1f8ed69f126cec32c3cbc05619cf260634c0949a
https://github.com/andreiborza
Improve typing so we don't walk over openai's types when using thehttps://github.com/getsentry/sentry-javascript/pull/17338/commits/bb8db23c9beb16cd975734d61d526e60dcb368cf
bb8db23https://github.com/getsentry/sentry-javascript/pull/17338/commits/bb8db23c9beb16cd975734d61d526e60dcb368cf
https://github.com/apps/cursor
Sign in to viewhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fgetsentry%2Fsentry-javascript%2Fpull%2F17338
Please reload this pagehttps://github.com/getsentry/sentry-javascript/pull/17338
andreiborzahttps://github.com/andreiborza
August 6, 2025 14:23https://github.com/getsentry/sentry-javascript/pull/17338#commits-pushed-34a64bd
https://github.com/andreiborza
Add changelog entryhttps://github.com/getsentry/sentry-javascript/pull/17338/commits/34a64bdb372207b62c2b184ab889f38c55be2fbd
34a64bdhttps://github.com/getsentry/sentry-javascript/pull/17338/commits/34a64bdb372207b62c2b184ab889f38c55be2fbd
https://github.com/andreiborza
Revert OpenAiClient type changeshttps://github.com/getsentry/sentry-javascript/pull/17338/commits/eda780710d080edde2cd2c8a251680433376ccc7
eda7807https://github.com/getsentry/sentry-javascript/pull/17338/commits/eda780710d080edde2cd2c8a251680433376ccc7
https://github.com/andreiborza
andreiborzahttps://github.com/andreiborza
force-pushedhttps://github.com/getsentry/sentry-javascript/compare/cfd4bee3529c8c3c1ff5fa9951f60208bddd86b7..eda780710d080edde2cd2c8a251680433376ccc7
cfd4beehttps://github.com/getsentry/sentry-javascript/commit/cfd4bee3529c8c3c1ff5fa9951f60208bddd86b7
eda7807https://github.com/getsentry/sentry-javascript/commit/eda780710d080edde2cd2c8a251680433376ccc7
Compare https://github.com/getsentry/sentry-javascript/compare/cfd4bee3529c8c3c1ff5fa9951f60208bddd86b7..eda780710d080edde2cd2c8a251680433376ccc7
August 6, 2025 12:28https://github.com/getsentry/sentry-javascript/pull/17338#event-19012194970
https://github.com/RulaKhaled
RulaKhaledhttps://github.com/RulaKhaled
Aug 6, 2025 https://github.com/getsentry/sentry-javascript/pull/17338#pullrequestreview-3092385630
View reviewed changes https://github.com/getsentry/sentry-javascript/pull/17338/files/eda780710d080edde2cd2c8a251680433376ccc7
dev-packages/cloudflare-integration-tests/suites/tracing/openai/mocks.tshttps://github.com/getsentry/sentry-javascript/pull/17338/files/eda780710d080edde2cd2c8a251680433376ccc7#diff-2ecbc3c391a2fec5db4d74ac5fabbe2701d0ad0273bdf1e6409179b69b37a6f2
RulaKhaledhttps://github.com/RulaKhaled
Aug 6, 2025https://github.com/getsentry/sentry-javascript/pull/17338#discussion_r2257041678
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/getsentry/sentry-javascript/pull/17338
andreiborzahttps://github.com/andreiborza
Aug 6, 2025https://github.com/getsentry/sentry-javascript/pull/17338#discussion_r2257069962
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/getsentry/sentry-javascript/pull/17338
https://github.com/RulaKhaled
RulaKhaledhttps://github.com/RulaKhaled
Aug 6, 2025 https://github.com/getsentry/sentry-javascript/pull/17338#pullrequestreview-3092389662
View reviewed changes https://github.com/getsentry/sentry-javascript/pull/17338/files/eda780710d080edde2cd2c8a251680433376ccc7
packages/core/src/utils/openai/index.tshttps://github.com/getsentry/sentry-javascript/pull/17338/files/eda780710d080edde2cd2c8a251680433376ccc7#diff-04e2314f4900c0c22925108233e5d1972a58d7e5a8bbf073918bddcfa74c7b64
RulaKhaledhttps://github.com/RulaKhaled
Aug 6, 2025https://github.com/getsentry/sentry-javascript/pull/17338#discussion_r2257044207
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/getsentry/sentry-javascript/pull/17338
https://github.com/andreiborza
Simplify openai mock for cloudflarehttps://github.com/getsentry/sentry-javascript/pull/17338/commits/888e1071cf1622411cb3fa70a8c95b825f15e480
888e107https://github.com/getsentry/sentry-javascript/pull/17338/commits/888e1071cf1622411cb3fa70a8c95b825f15e480
https://github.com/apps/cursor
Sign in to viewhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fgetsentry%2Fsentry-javascript%2Fpull%2F17338
Please reload this pagehttps://github.com/getsentry/sentry-javascript/pull/17338
https://github.com/andreiborza
Update sentry/core dep in integration testshttps://github.com/getsentry/sentry-javascript/pull/17338/commits/4ad3bed9697110652c04ff0405e010a5329c641c
4ad3bedhttps://github.com/getsentry/sentry-javascript/pull/17338/commits/4ad3bed9697110652c04ff0405e010a5329c641c
https://github.com/mydea
mydeahttps://github.com/mydea
Aug 6, 2025https://github.com/getsentry/sentry-javascript/pull/17338#issuecomment-3160095629
Please reload this pagehttps://github.com/getsentry/sentry-javascript/pull/17338
https://github.com/andreiborza
andreiborzahttps://github.com/andreiborza
Aug 6, 2025https://github.com/getsentry/sentry-javascript/pull/17338#issuecomment-3160125381
https://platform.openai.com/docs/libraries/typescript-javascript-libraryhttps://platform.openai.com/docs/libraries/typescript-javascript-library
Please reload this pagehttps://github.com/getsentry/sentry-javascript/pull/17338
https://github.com/andreiborza
Remove sentry/core import from devdepshttps://github.com/getsentry/sentry-javascript/pull/17338/commits/3f5fc648d02c64d7122c57470353165009d2819b
3f5fc64https://github.com/getsentry/sentry-javascript/pull/17338/commits/3f5fc648d02c64d7122c57470353165009d2819b
https://github.com/RulaKhaled
RulaKhaledhttps://github.com/RulaKhaled
Aug 6, 2025 https://github.com/getsentry/sentry-javascript/pull/17338#pullrequestreview-3092908360
View reviewed changes https://github.com/getsentry/sentry-javascript/pull/17338/files/3f5fc648d02c64d7122c57470353165009d2819b
RulaKhaledhttps://github.com/RulaKhaled
Please reload this pagehttps://github.com/getsentry/sentry-javascript/pull/17338
https://github.com/getsentry/sentry-javascript/pull/17338#pullrequestreview-3092908360
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
@andreiborzahttps://github.com/andreiborza
Please reload this pagehttps://github.com/getsentry/sentry-javascript/pull/17338
https://github.com/andreiborza
andreiborzahttps://github.com/andreiborza
Aug 6, 2025https://github.com/getsentry/sentry-javascript/pull/17338#issuecomment-3160512477
it works on vercel-edgehttps://sentry-sdks.sentry.io/explore/discover/trace/37c988c98bd191fff18c9e9b414f9076/?dataset=transactions&field=title&field=project&field=user.display&field=timestamp&name=All%20Errors&node=span-98d948278ce4ddd2&project=4507605441380352&query=&queryDataset=transaction-like&sort=-timestamp&source=discover&statsPeriod=5m&tab=ai-spans×tamp=1754491727&yAxis=count%28%29
Please reload this pagehttps://github.com/getsentry/sentry-javascript/pull/17338
https://github.com/andreiborza
andreiborzahttps://github.com/andreiborza
ed07836https://github.com/getsentry/sentry-javascript/commit/ed0783689536e8a34f420ad303847cdae958d590
Aug 6, 2025https://github.com/getsentry/sentry-javascript/pull/17338#event-19015872739
https://github.com/andreiborza
andreiborzahttps://github.com/andreiborza
August 6, 2025 15:18https://github.com/getsentry/sentry-javascript/pull/17338#event-19015873464
RulaKhaledhttps://github.com/RulaKhaled
Aug 7, 2025 https://github.com/getsentry/sentry-javascript/pull/17338#ref-commit-8548ea7
https://github.com/andreiborza
https://github.com/RulaKhaled
feat(cloudflare,vercel-edge): Add support for OpenAI instrumentation (https://github.com/getsentry/sentry-javascript/commit/8548ea7a661efdcdc49d9cecaf778b3c2d135eed
#…https://github.com/getsentry/sentry-javascript/pull/17338
8548ea7https://github.com/getsentry/sentry-javascript/commit/8548ea7a661efdcdc49d9cecaf778b3c2d135eed
…17338https://github.com/getsentry/sentry-javascript/pull/17338
Bump @sentry/react from 8.55.0 to 10.16.0 Pouria-FOSSA/dependabot-metadata-test#65 https://github.com/Pouria-FOSSA/dependabot-metadata-test/pull/65
Bump @sentry/react from 8.55.0 to 10.17.0 Pouria-FOSSA/dependabot-metadata-test#66 https://github.com/Pouria-FOSSA/dependabot-metadata-test/pull/66
Bump @sentry/react from 8.55.0 to 10.18.0 Pouria-FOSSA/dependabot-metadata-test#68 https://github.com/Pouria-FOSSA/dependabot-metadata-test/pull/68
Bump @sentry/react from 8.55.0 to 10.19.0 Pouria-FOSSA/dependabot-metadata-test#70 https://github.com/Pouria-FOSSA/dependabot-metadata-test/pull/70
Bump @sentry/react from 8.55.0 to 10.20.0 Pouria-FOSSA/dependabot-metadata-test#71 https://github.com/Pouria-FOSSA/dependabot-metadata-test/pull/71
Bump @sentry/react from 8.55.0 to 10.21.0 Pouria-FOSSA/dependabot-metadata-test#72 https://github.com/Pouria-FOSSA/dependabot-metadata-test/pull/72
https://github.co/hiddenchars
https://github.com/getsentry/sentry-javascript/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-javascript%2Fpull%2F17338
https://github.com/apps/cursor
cursor[bot] https://github.com/apps/cursor
https://github.com/getsentry/sentry-javascript/pull/17338/files/888e1071cf1622411cb3fa70a8c95b825f15e480
https://github.com/RulaKhaled
RulaKhaled https://github.com/RulaKhaled
https://github.com/getsentry/sentry-javascript/pull/17338/files/3f5fc648d02c64d7122c57470353165009d2819b
https://github.com/Lms24
Lms24 https://github.com/Lms24
https://github.com/chargome
chargome https://github.com/chargome
Please reload this pagehttps://github.com/getsentry/sentry-javascript/pull/17338
Please reload this pagehttps://github.com/getsentry/sentry-javascript/pull/17338
https://github.com/andreiborza
https://github.com/mydea
https://github.com/RulaKhaled
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.