René's URL Explorer Experiment


Title: feat(core): Add `afterEnvelope` and `flushTraceSpans` client hooks by JPeer264 · Pull Request #23136 · getsentry/sentry-javascript · GitHub

Open Graph Title: feat(core): Add `afterEnvelope` and `flushTraceSpans` client hooks by JPeer264 · Pull Request #23136 · getsentry/sentry-javascript

X Title: feat(core): Add `afterEnvelope` and `flushTraceSpans` client hooks by JPeer264 · Pull Request #23136 · getsentry/sentry-javascript

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

Open Graph Description: This adds hooks that are required for #23083. We need a way to listen to specific events that are happening after responses. The afterEnvelope, gives us the missing hook for envelopes and flushTrac...

X Description: This adds hooks that are required for #23083. We need a way to listen to specific events that are happening after responses. The afterEnvelope, gives us the missing hook for envelopes and flushTrac...

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

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:4880e89d-a5da-c824-20b6-19f9130a474a
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idBA04:96C35:31E535:456AA7:6B04250D
html-safe-nonce9939758fb12db70e4cfa5dbae1edf8784fb6fce9c289f6a06f8144d810d5d608
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCQTA0Ojk2QzM1OjMxRTUzNTo0NTZBQTc6NkIwNDI1MEQiLCJ2aXNpdG9yX2lkIjoiODA2OTU1MDc4OTkzNDQ1ODEyNSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmacb3d3bd2830ff855aa49c45af63c12026bbb302603f836e819514fc11eb4b36ed
hovercard-subject-tagpull_request:4227035895
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/23136/pull_request_layout
twitter:imagehttps://opengraph.githubassets.com/8af9a40f3fb357dd9da2e52fbd285a62da70b617b06a0e20cdf76956add973ad/getsentry/sentry-javascript/pull/23136
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/8af9a40f3fb357dd9da2e52fbd285a62da70b617b06a0e20cdf76956add973ad/getsentry/sentry-javascript/pull/23136
og:image:altThis adds hooks that are required for #23083. We need a way to listen to specific events that are happening after responses. The afterEnvelope, gives us the missing hook for envelopes and flushTrac...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameJPeer264
hostnamegithub.com
expected-hostnamegithub.com
Nonef8d9f404447ab5df341c8a92cf5fc927730ad1321e64ac57656444d2438097f1
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
releasef7edccce04851591ee529948701779ce6819bc53
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-namepull-requests

Links:

Skip to contenthttps://github.com/getsentry/sentry-javascript/pull/23136#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fgetsentry%2Fsentry-javascript%2Fpull%2F23136
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%2F23136
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/23136
Reloadhttps://github.com/getsentry/sentry-javascript/pull/23136
Reloadhttps://github.com/getsentry/sentry-javascript/pull/23136
getsentryhttps://github.com/getsentry
sentry-javascripthttps://github.com/getsentry/sentry-javascript
Codehttps://github.com/getsentry/sentry-javascript
Issues339 (339)https://github.com/getsentry/sentry-javascript/issues
Pull requests59 (59)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
JPeer264https://github.com/JPeer264
develophttps://github.com/getsentry/sentry-javascript/tree/develop
jp/cacheclient-add-hookshttps://github.com/getsentry/sentry-javascript/tree/jp/cacheclient-add-hooks
Conversationhttps://github.com/getsentry/sentry-javascript/pull/23136
Commits1 (1)https://github.com/getsentry/sentry-javascript/pull/23136/commits
Checkshttps://github.com/getsentry/sentry-javascript/pull/23136/checks
Files changedhttps://github.com/getsentry/sentry-javascript/pull/23136/files
feat(core): Add afterEnvelope and flushTraceSpans client hookshttps://github.com/getsentry/sentry-javascript/pull/23136#top
JPeer264https://github.com/JPeer264
develophttps://github.com/getsentry/sentry-javascript/tree/develop
jp/cacheclient-add-hookshttps://github.com/getsentry/sentry-javascript/tree/jp/cacheclient-add-hooks
https://github.com/JPeer264
JPeer264https://github.com/JPeer264
Aug 7, 2026https://github.com/getsentry/sentry-javascript/pull/23136#issue-5088529997
Please reload this pagehttps://github.com/getsentry/sentry-javascript/pull/23136
#23083https://github.com/getsentry/sentry-javascript/issues/23083
Please reload this pagehttps://github.com/getsentry/sentry-javascript/pull/23136
https://github.com/JPeer264
JPeer264https://github.com/JPeer264
Lms24https://github.com/Lms24
chargomehttps://github.com/chargome
August 7, 2026 08:54https://github.com/getsentry/sentry-javascript/pull/23136#event-29108597981
https://github.com/JPeer264
JPeer264https://github.com/JPeer264
Aug 7, 2026https://github.com/getsentry/sentry-javascript/pull/23136#event-29108598201
https://github.com/Lms24
Lms24https://github.com/Lms24
Aug 7, 2026 https://github.com/getsentry/sentry-javascript/pull/23136#pullrequestreview-4881408046
View reviewed changes https://github.com/getsentry/sentry-javascript/pull/23136/files
Lms24https://github.com/Lms24
https://github.com/getsentry/sentry-javascript/pull/23136#pullrequestreview-4881408046
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/getsentry/sentry-javascript/pull/23136
packages/core/src/integrations/spanStreaming.tshttps://github.com/getsentry/sentry-javascript/pull/23136/files#diff-4cd0be9db942f6419f13591ee95b026044e476c8de9ddf1a628dcd345d5a44fb
Lms24https://github.com/Lms24
Aug 7, 2026https://github.com/getsentry/sentry-javascript/pull/23136#discussion_r3734625603
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/getsentry/sentry-javascript/pull/23136
JPeer264https://github.com/JPeer264
Aug 7, 2026https://github.com/getsentry/sentry-javascript/pull/23136#discussion_r3734760112
Please reload this pagehttps://github.com/getsentry/sentry-javascript/pull/23136
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/getsentry/sentry-javascript/pull/23136
JPeer264https://github.com/JPeer264
Aug 7, 2026https://github.com/getsentry/sentry-javascript/pull/23136#discussion_r3735075517
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
@Lms24https://github.com/Lms24
Please reload this pagehttps://github.com/getsentry/sentry-javascript/pull/23136
https://github.com/apps/github-actions
github-actionshttps://github.com/apps/github-actions
Aug 7, 2026https://github.com/getsentry/sentry-javascript/pull/23136#issuecomment-5215048255
Please reload this pagehttps://github.com/getsentry/sentry-javascript/pull/23136
View base workflow runhttps://github.com/getsentry/sentry-javascript/actions/runs/31699203665
Please reload this pagehttps://github.com/getsentry/sentry-javascript/pull/23136
https://github.com/Lms24
Lms24https://github.com/Lms24
Aug 7, 2026 https://github.com/getsentry/sentry-javascript/pull/23136#pullrequestreview-4881440357
View reviewed changes https://github.com/getsentry/sentry-javascript/pull/23136/files
packages/core/src/client.tshttps://github.com/getsentry/sentry-javascript/pull/23136/files#diff-858339789c798051d9c13620bffce8ce860e7ad8ba18dba1c8711eb1f7d51a55
Lms24https://github.com/Lms24
Aug 7, 2026https://github.com/getsentry/sentry-javascript/pull/23136#discussion_r3734651957
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/getsentry/sentry-javascript/pull/23136
JPeer264https://github.com/JPeer264
Aug 7, 2026https://github.com/getsentry/sentry-javascript/pull/23136#discussion_r3735521095
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/getsentry/sentry-javascript/pull/23136
https://github.com/Lms24
Lms24https://github.com/Lms24
Aug 7, 2026https://github.com/getsentry/sentry-javascript/pull/23136#issuecomment-5215084325
Please reload this pagehttps://github.com/getsentry/sentry-javascript/pull/23136
https://github.com/JPeer264
JPeer264https://github.com/JPeer264
Aug 7, 2026 https://github.com/getsentry/sentry-javascript/pull/23136#ref-pullrequest-5089680932
feat(cloudflare): Add cacheClient to reuse the client across invocations #23151 https://github.com/getsentry/sentry-javascript/pull/23151
https://github.com/JPeer264
JPeer264https://github.com/JPeer264
force-pushedhttps://github.com/getsentry/sentry-javascript/compare/0d559d6bb37ac697a7b18cfc21ec9d029e2969f0..0a80fe67ec85f1a177f3414094389a053ab19bba
0d559d6https://github.com/getsentry/sentry-javascript/commit/0d559d6bb37ac697a7b18cfc21ec9d029e2969f0
0a80fe6https://github.com/getsentry/sentry-javascript/commit/0a80fe67ec85f1a177f3414094389a053ab19bba
Compare https://github.com/getsentry/sentry-javascript/compare/0d559d6bb37ac697a7b18cfc21ec9d029e2969f0..0a80fe67ec85f1a177f3414094389a053ab19bba
August 7, 2026 11:46https://github.com/getsentry/sentry-javascript/pull/23136#event-29116168882
https://github.com/Lms24
Lms24https://github.com/Lms24
Aug 7, 2026 https://github.com/getsentry/sentry-javascript/pull/23136#pullrequestreview-4883273648
View reviewed changes https://github.com/getsentry/sentry-javascript/pull/23136/files/fee2407e76c2b9034e69d8c6e2747dde5a3c2176
Lms24https://github.com/Lms24
https://github.com/getsentry/sentry-javascript/pull/23136#pullrequestreview-4883273648
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/getsentry/sentry-javascript/pull/23136
https://github.com/JPeer264
JPeer264https://github.com/JPeer264
force-pushedhttps://github.com/getsentry/sentry-javascript/compare/f478d275c38c51cbc828b765ab137891cd25bae4..e3d01547fc610c3c4f84f9d9d620f50af9b0b3e1
f478d27https://github.com/getsentry/sentry-javascript/commit/f478d275c38c51cbc828b765ab137891cd25bae4
e3d0154https://github.com/getsentry/sentry-javascript/commit/e3d01547fc610c3c4f84f9d9d620f50af9b0b3e1
Compare https://github.com/getsentry/sentry-javascript/compare/f478d275c38c51cbc828b765ab137891cd25bae4..e3d01547fc610c3c4f84f9d9d620f50af9b0b3e1
August 12, 2026 12:41https://github.com/getsentry/sentry-javascript/pull/23136#event-29339928463
https://github.com/apps/sentry
sentryhttps://github.com/apps/sentry
Aug 12, 2026 https://github.com/getsentry/sentry-javascript/pull/23136#pullrequestreview-4916616478
View reviewed changes https://github.com/getsentry/sentry-javascript/pull/23136/files
packages/core/src/client.tshttps://github.com/getsentry/sentry-javascript/pull/23136/files#diff-858339789c798051d9c13620bffce8ce860e7ad8ba18dba1c8711eb1f7d51a55
Please reload this pagehttps://github.com/getsentry/sentry-javascript/pull/23136
https://github.com/JPeer264
feat(core): Add afterEnvelope and flushTraceSpans client hookshttps://github.com/getsentry/sentry-javascript/pull/23136/commits/fee2407e76c2b9034e69d8c6e2747dde5a3c2176
fee2407https://github.com/getsentry/sentry-javascript/pull/23136/commits/fee2407e76c2b9034e69d8c6e2747dde5a3c2176
https://github.com/JPeer264
JPeer264https://github.com/JPeer264
force-pushedhttps://github.com/getsentry/sentry-javascript/compare/e3d01547fc610c3c4f84f9d9d620f50af9b0b3e1..fee2407e76c2b9034e69d8c6e2747dde5a3c2176
e3d0154https://github.com/getsentry/sentry-javascript/commit/e3d01547fc610c3c4f84f9d9d620f50af9b0b3e1
fee2407https://github.com/getsentry/sentry-javascript/commit/fee2407e76c2b9034e69d8c6e2747dde5a3c2176
Compare https://github.com/getsentry/sentry-javascript/compare/e3d01547fc610c3c4f84f9d9d620f50af9b0b3e1..fee2407e76c2b9034e69d8c6e2747dde5a3c2176
August 13, 2026 12:34https://github.com/getsentry/sentry-javascript/pull/23136#event-29399746497
https://github.com/betegon
betegonhttps://github.com/betegon
Aug 14, 2026 https://github.com/getsentry/sentry-javascript/pull/23136#ref-pullrequest-5145538860
fix(cloudflare): Preserve late static child spans #23428 https://github.com/getsentry/sentry-javascript/pull/23428
https://github.com/JPeer264
JPeer264https://github.com/JPeer264
0cf4b15https://github.com/getsentry/sentry-javascript/commit/0cf4b15aac986efb8f510f744a4440b590db0d54
Aug 24, 2026https://github.com/getsentry/sentry-javascript/pull/23136#event-29913815872
Please reload this pagehttps://github.com/getsentry/sentry-javascript/pull/23136
https://github.com/JPeer264
JPeer264https://github.com/JPeer264
August 24, 2026 13:01https://github.com/getsentry/sentry-javascript/pull/23136#event-29913819388
JPeer264https://github.com/JPeer264
Aug 25, 2026 https://github.com/getsentry/sentry-javascript/pull/23136#ref-commit-a219672
https://github.com/JPeer264
feat(core): Addhttps://github.com/getsentry/sentry-javascript/commit/a2196721a12298f85e1923076de4ab2d56083b03
afterEnvelopehttps://github.com/getsentry/sentry-javascript/commit/a2196721a12298f85e1923076de4ab2d56083b03
andhttps://github.com/getsentry/sentry-javascript/commit/a2196721a12298f85e1923076de4ab2d56083b03
flushTraceSpanshttps://github.com/getsentry/sentry-javascript/commit/a2196721a12298f85e1923076de4ab2d56083b03
client hooks (https://github.com/getsentry/sentry-javascript/commit/a2196721a12298f85e1923076de4ab2d56083b03
#…https://github.com/getsentry/sentry-javascript/pull/23136
a219672https://github.com/getsentry/sentry-javascript/commit/a2196721a12298f85e1923076de4ab2d56083b03
…23136https://github.com/getsentry/sentry-javascript/pull/23136
#23083https://github.com/getsentry/sentry-javascript/issues/23083
JPeer264https://github.com/JPeer264
Aug 25, 2026 https://github.com/getsentry/sentry-javascript/pull/23136#ref-commit-7c99713
https://github.com/JPeer264
https://github.com/cursoragent
https://github.com/andreiborza
feat(cloudflare): Add cacheClient to reuse the client across invocati…https://github.com/getsentry/sentry-javascript/commit/7c9971301a517dfae6c80346f93fcb1c4beef825
7c99713https://github.com/getsentry/sentry-javascript/commit/7c9971301a517dfae6c80346f93fcb1c4beef825
#23151https://github.com/getsentry/sentry-javascript/pull/23151
#23083https://github.com/getsentry/sentry-javascript/issues/23083
#22545https://github.com/getsentry/sentry-javascript/issues/22545
#21950https://github.com/getsentry/sentry-javascript/issues/21950
#22969https://github.com/getsentry/sentry-javascript/pull/22969
#22545https://github.com/getsentry/sentry-javascript/issues/22545
https://developers.cloudflare.com/workers/runtime-apis/performance/https://developers.cloudflare.com/workers/runtime-apis/performance/
#23136https://github.com/getsentry/sentry-javascript/pull/23136
publish: getsentry/sentry-javascript@11.0.0-rc.0 getsentry/publish#9545 https://github.com/getsentry/publish/issues/9545
publish: getsentry/sentry-javascript@11.0.0 getsentry/publish#9615 https://github.com/getsentry/publish/issues/9615
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%2F23136
https://github.com/apps/sentry
sentry[bot] https://github.com/apps/sentry
https://github.com/getsentry/sentry-javascript/pull/23136/files/e3d01547fc610c3c4f84f9d9d620f50af9b0b3e1
https://github.com/Lms24
Lms24 https://github.com/Lms24
https://github.com/getsentry/sentry-javascript/pull/23136/files/fee2407e76c2b9034e69d8c6e2747dde5a3c2176
https://github.com/chargome
chargome https://github.com/chargome
Please reload this pagehttps://github.com/getsentry/sentry-javascript/pull/23136
https://github.com/JPeer264
JPeer264 https://github.com/JPeer264
Please reload this pagehttps://github.com/getsentry/sentry-javascript/pull/23136
https://github.com/JPeer264
https://github.com/Lms24
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.