René's URL Explorer Experiment


Title: fix(server-utils): Read AI SDK cache token counts in Vercel AI channel subscriber by sergical · Pull Request #24350 · getsentry/sentry-javascript · GitHub

Open Graph Title: fix(server-utils): Read AI SDK cache token counts in Vercel AI channel subscriber by sergical · Pull Request #24350 · getsentry/sentry-javascript

X Title: fix(server-utils): Read AI SDK cache token counts in Vercel AI channel subscriber by sergical · Pull Request #24350 · getsentry/sentry-javascript

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

Open Graph Description: The v11 channel subscriber only maps cache token counts out of providerMetadata, keyed by provider name. Calls through the Vercel AI Gateway carry a gateway key instead, so gen_ai.usage.cache_read....

X Description: The v11 channel subscriber only maps cache token counts out of providerMetadata, keyed by provider name. Calls through the Vercel AI Gateway carry a gateway key instead, so gen_ai.usage.cache_read....

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

X: @github

direct link

Domain: github.com

IPv4 address: 140.82.112.3

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:ecf51977-672f-a6fc-028d-2b7ecc7f2953
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idBFFA:436BB:1ACD8:23D59:6B046135
html-safe-nonce0e06df106dadc77bbc68c66f91014d5937617b47b850201cd913e76957bf0751
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCRkZBOjQzNkJCOjFBQ0Q4OjIzRDU5OjZCMDQ2MTM1IiwidmlzaXRvcl9pZCI6IjM3Nzc3NDcwODUyNDAzMjg1MDEiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac8bfd854ebcf7ff4a5b907fc943dedfd8c1a3d436aa05f0e7e6ed8f1aa5c2b6b9
hovercard-subject-tagpull_request:4509876265
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/24350/pull_request_layout
twitter:imagehttps://opengraph.githubassets.com/f376bd4c0e71de23ce816da0032c02aa0db911d30ddbf9cd2ccbb17d788daea4/getsentry/sentry-javascript/pull/24350
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/f376bd4c0e71de23ce816da0032c02aa0db911d30ddbf9cd2ccbb17d788daea4/getsentry/sentry-javascript/pull/24350
og:image:altThe v11 channel subscriber only maps cache token counts out of providerMetadata, keyed by provider name. Calls through the Vercel AI Gateway carry a gateway key instead, so gen_ai.usage.cache_read....
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamesergical
hostnamegithub.com
expected-hostnamegithub.com
None2d58451b4bcb73c33c67bfb6b28fb75fe6d5e279daf9b560fa4fd832f3d8c9a6
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
release03e114520787ad27289207f153520ef97461127c
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-namepull-requests

Links:

Skip to contenthttps://github.com/getsentry/sentry-javascript/pull/24350#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fgetsentry%2Fsentry-javascript%2Fpull%2F24350
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%2F24350
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/24350
Reloadhttps://github.com/getsentry/sentry-javascript/pull/24350
Reloadhttps://github.com/getsentry/sentry-javascript/pull/24350
getsentryhttps://github.com/getsentry
sentry-javascripthttps://github.com/getsentry/sentry-javascript
Codehttps://github.com/getsentry/sentry-javascript
Issues340 (340)https://github.com/getsentry/sentry-javascript/issues
Pull requests55 (55)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
mydeahttps://github.com/mydea
develophttps://github.com/getsentry/sentry-javascript/tree/develop
fix/vercel-ai-channel-cache-tokenshttps://github.com/getsentry/sentry-javascript/tree/fix/vercel-ai-channel-cache-tokens
Conversationhttps://github.com/getsentry/sentry-javascript/pull/24350
Commits4 (4)https://github.com/getsentry/sentry-javascript/pull/24350/commits
Checkshttps://github.com/getsentry/sentry-javascript/pull/24350/checks
Files changedhttps://github.com/getsentry/sentry-javascript/pull/24350/files
fix(server-utils): Read AI SDK cache token counts in Vercel AI channel subscriberhttps://github.com/getsentry/sentry-javascript/pull/24350#top
mydeahttps://github.com/mydea
develophttps://github.com/getsentry/sentry-javascript/tree/develop
fix/vercel-ai-channel-cache-tokenshttps://github.com/getsentry/sentry-javascript/tree/fix/vercel-ai-channel-cache-tokens
https://github.com/sergical
sergicalhttps://github.com/sergical
Sep 11, 2026https://github.com/getsentry/sentry-javascript/pull/24350#issue-5429122903
Please reload this pagehttps://github.com/getsentry/sentry-javascript/pull/24350
#23384https://github.com/getsentry/sentry-javascript/pull/23384
Please reload this pagehttps://github.com/getsentry/sentry-javascript/pull/24350
https://github.com/sergical
sergicalhttps://github.com/sergical
code ownerhttps://github.com/getsentry/sentry-javascript/blob/dca0166eee9be6e9633b92bc2eab88725f78a30a/.github/CODEOWNERS#L14
September 11, 2026 21:30https://github.com/getsentry/sentry-javascript/pull/24350#event-31000392482
https://github.com/sergical
sergicalhttps://github.com/sergical
logaretmhttps://github.com/logaretm
stephanie-andersonhttps://github.com/stephanie-anderson
September 11, 2026 21:30https://github.com/getsentry/sentry-javascript/pull/24350#event-31000392827
https://github.com/apps/sentry
sentryhttps://github.com/apps/sentry
Sep 11, 2026 https://github.com/getsentry/sentry-javascript/pull/24350#pullrequestreview-5183594181
View reviewed changes https://github.com/getsentry/sentry-javascript/pull/24350/files
packages/server-utils/src/integrations/vercel-ai/vercel-ai-dc-subscriber.tshttps://github.com/getsentry/sentry-javascript/pull/24350/files#diff-76aca0769a930a4f761a4303026d709673e20fe9a19ddba7e309ab67d1628643
Please reload this pagehttps://github.com/getsentry/sentry-javascript/pull/24350
https://github.com/apps/github-actions
github-actionshttps://github.com/apps/github-actions
Sep 11, 2026https://github.com/getsentry/sentry-javascript/pull/24350#issuecomment-5640926688
Please reload this pagehttps://github.com/getsentry/sentry-javascript/pull/24350
View base workflow runhttps://github.com/getsentry/sentry-javascript/actions/runs/34825550430
Please reload this pagehttps://github.com/getsentry/sentry-javascript/pull/24350
https://github.com/sergical
sergicalhttps://github.com/sergical
RulaKhaledhttps://github.com/RulaKhaled
September 11, 2026 22:09https://github.com/getsentry/sentry-javascript/pull/24350#event-31001858236
https://github.com/logaretm
logaretmhttps://github.com/logaretm
Sep 11, 2026 https://github.com/getsentry/sentry-javascript/pull/24350#pullrequestreview-5184249041
View reviewed changes https://github.com/getsentry/sentry-javascript/pull/24350/files
logaretmhttps://github.com/logaretm
https://github.com/getsentry/sentry-javascript/pull/24350#pullrequestreview-5184249041
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/getsentry/sentry-javascript/pull/24350
packages/server-utils/src/integrations/vercel-ai/vercel-ai-dc-subscriber.tshttps://github.com/getsentry/sentry-javascript/pull/24350/files#diff-76aca0769a930a4f761a4303026d709673e20fe9a19ddba7e309ab67d1628643
Please reload this pagehttps://github.com/getsentry/sentry-javascript/pull/24350
https://github.com/logaretm
logaretmhttps://github.com/logaretm
Sep 12, 2026 https://github.com/getsentry/sentry-javascript/pull/24350#pullrequestreview-5184360934
View reviewed changes https://github.com/getsentry/sentry-javascript/pull/24350/files
logaretmhttps://github.com/logaretm
https://github.com/getsentry/sentry-javascript/pull/24350#pullrequestreview-5184360934
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/getsentry/sentry-javascript/pull/24350
packages/server-utils/src/ai/vercel-ai/index.tshttps://github.com/getsentry/sentry-javascript/pull/24350/files#diff-04353315b95d4467ac99ce2b78803fa314ac57996920494e0eaed6f0d92bc217
logaretmhttps://github.com/logaretm
Sep 12, 2026https://github.com/getsentry/sentry-javascript/pull/24350#discussion_r3994330962
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/getsentry/sentry-javascript/pull/24350
sergicalhttps://github.com/sergical
Sep 12, 2026https://github.com/getsentry/sentry-javascript/pull/24350#discussion_r3994614805
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/getsentry/sentry-javascript/pull/24350
packages/server-utils/src/integrations/vercel-ai/vercel-ai-dc-subscriber.tshttps://github.com/getsentry/sentry-javascript/pull/24350/files#diff-76aca0769a930a4f761a4303026d709673e20fe9a19ddba7e309ab67d1628643
logaretmhttps://github.com/logaretm
Sep 12, 2026https://github.com/getsentry/sentry-javascript/pull/24350#discussion_r3994330966
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/getsentry/sentry-javascript/pull/24350
sergicalhttps://github.com/sergical
Sep 12, 2026https://github.com/getsentry/sentry-javascript/pull/24350#discussion_r3994614684
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
fa57569https://github.com/getsentry/sentry-javascript/commit/fa5756934b43391be0948ca0fbb97f19dbd6a442
Please reload this pagehttps://github.com/getsentry/sentry-javascript/pull/24350
packages/server-utils/src/integrations/vercel-ai/vercel-ai-dc-subscriber.tshttps://github.com/getsentry/sentry-javascript/pull/24350/files#diff-76aca0769a930a4f761a4303026d709673e20fe9a19ddba7e309ab67d1628643
logaretmhttps://github.com/logaretm
Sep 12, 2026https://github.com/getsentry/sentry-javascript/pull/24350#discussion_r3994330968
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/getsentry/sentry-javascript/pull/24350
sergicalhttps://github.com/sergical
Sep 12, 2026https://github.com/getsentry/sentry-javascript/pull/24350#discussion_r3994614745
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/getsentry/sentry-javascript/pull/24350
https://github.com/sergical
sergicalhttps://github.com/sergical
Sep 13, 2026 https://github.com/getsentry/sentry-javascript/pull/24350#ref-pullrequest-5441118734
Run the factory on Mistral with prompt caching and full transcripts in Sentry sergical/software-factory#8 https://github.com/sergical/software-factory/pull/8
https://github.com/mydea
mydeahttps://github.com/mydea
Sep 14, 2026 https://github.com/getsentry/sentry-javascript/pull/24350#ref-pullrequest-5446851342
test(node): Cover Vercel AI v7 cache tokens from the SDK usage object #24358 https://github.com/getsentry/sentry-javascript/pull/24358
https://github.com/mydea
mydeahttps://github.com/mydea
stack #24359https://github.com/getsentry/sentry-javascript/stack/24359
September 14, 2026 08:12https://github.com/getsentry/sentry-javascript/pull/24350#event-31086095625
https://github.com/mydea
mydeahttps://github.com/mydea
Sep 14, 2026https://github.com/getsentry/sentry-javascript/pull/24350#issuecomment-5661003826
#24358https://github.com/getsentry/sentry-javascript/pull/24358
Please reload this pagehttps://github.com/getsentry/sentry-javascript/pull/24350
sergicalhttps://github.com/sergical
September 14, 2026 11:39https://github.com/getsentry/sentry-javascript/pull/24350#commits-pushed-a316fce
https://github.com/sergical
https://github.com/claude
fix(server-utils): Read AI SDK cache token counts in Vercel AI channe…https://github.com/getsentry/sentry-javascript/pull/24350/commits/a316fce8af77847970221d94a29e39da66e726a7
a316fcehttps://github.com/getsentry/sentry-javascript/pull/24350/commits/a316fce8af77847970221d94a29e39da66e726a7
https://github.com/sergical
https://github.com/claude
Keep aggregated cache counts on root operationshttps://github.com/getsentry/sentry-javascript/pull/24350/commits/8fd84fddc224103ec9535f2b3f8b319a5aa82c80
8fd84fdhttps://github.com/getsentry/sentry-javascript/pull/24350/commits/8fd84fddc224103ec9535f2b3f8b319a5aa82c80
https://github.com/sergical
https://github.com/logaretm
simplifyhttps://github.com/getsentry/sentry-javascript/pull/24350/commits/aeda5fd98afed6ce0d608cc9fdc722bcb1ed835f
aeda5fdhttps://github.com/getsentry/sentry-javascript/pull/24350/commits/aeda5fd98afed6ce0d608cc9fdc722bcb1ed835f
https://github.com/sergical
https://github.com/claude
Skip unreported cache counts instead of setting them to undefinedhttps://github.com/getsentry/sentry-javascript/pull/24350/commits/3f64a0d7af7774e4677be42ee669ed92564286ce
3f64a0dhttps://github.com/getsentry/sentry-javascript/pull/24350/commits/3f64a0d7af7774e4677be42ee669ed92564286ce
https://github.com/mydea
mydeahttps://github.com/mydea
force-pushedhttps://github.com/getsentry/sentry-javascript/compare/fa5756934b43391be0948ca0fbb97f19dbd6a442..3f64a0d7af7774e4677be42ee669ed92564286ce
fa57569https://github.com/getsentry/sentry-javascript/commit/fa5756934b43391be0948ca0fbb97f19dbd6a442
3f64a0dhttps://github.com/getsentry/sentry-javascript/commit/3f64a0d7af7774e4677be42ee669ed92564286ce
Compare https://github.com/getsentry/sentry-javascript/compare/fa5756934b43391be0948ca0fbb97f19dbd6a442..3f64a0d7af7774e4677be42ee669ed92564286ce
September 14, 2026 09:39https://github.com/getsentry/sentry-javascript/pull/24350#event-31090866433
https://github.com/mydea
mydeahttps://github.com/mydea
de1e244https://github.com/getsentry/sentry-javascript/commit/de1e2440f8ba5423c0331235dcaf9d7bc17b2cd2
Sep 14, 2026https://github.com/getsentry/sentry-javascript/pull/24350#event-31092287228
Please reload this pagehttps://github.com/getsentry/sentry-javascript/pull/24350
https://github.com/mydea
mydeahttps://github.com/mydea
September 14, 2026 10:06https://github.com/getsentry/sentry-javascript/pull/24350#event-31092289503
mydeahttps://github.com/mydea
Sep 14, 2026 https://github.com/getsentry/sentry-javascript/pull/24350#ref-commit-f63422b
https://github.com/mydea
https://github.com/claude
test(node): Cover Vercel AI v7 cache tokens from the SDK usage object (https://github.com/getsentry/sentry-javascript/commit/f63422b6ec9906753c8edd7db73d9d7e73daa475
…https://github.com/getsentry/sentry-javascript/pull/24358
f63422bhttps://github.com/getsentry/sentry-javascript/commit/f63422b6ec9906753c8edd7db73d9d7e73daa475
…#24358https://github.com/getsentry/sentry-javascript/pull/24358
#24350https://github.com/getsentry/sentry-javascript/pull/24350
https://claude.com/claude-codehttps://claude.com/claude-code
https://github.com/apps/linear-code
linear-codehttps://github.com/apps/linear-code
Sep 14, 2026https://github.com/getsentry/sentry-javascript/pull/24350#issuecomment-5664464054
DEVEX-704https://linear.app/getsentry/issue/DEVEX-704
Please reload this pagehttps://github.com/getsentry/sentry-javascript/pull/24350
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%2F24350
https://github.com/apps/sentry
sentry[bot] https://github.com/apps/sentry
https://github.com/getsentry/sentry-javascript/pull/24350/files/076ca313cf6b38341dcaaaf84e01e6a12b1b780a
https://github.com/logaretm
logaretm https://github.com/logaretm
https://github.com/getsentry/sentry-javascript/pull/24350/files/1bd0c23c8035acd5278ac36c4aa94ff28b4d9374
https://github.com/stephanie-anderson
stephanie-anderson https://github.com/stephanie-anderson
https://github.com/RulaKhaled
RulaKhaled https://github.com/RulaKhaled
Please reload this pagehttps://github.com/getsentry/sentry-javascript/pull/24350
Please reload this pagehttps://github.com/getsentry/sentry-javascript/pull/24350
https://github.com/sergical
https://github.com/mydea
https://github.com/logaretm
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.