René's URL Explorer Experiment


Title: fix(core): preserve span links through beforeSendSpan by chiliec · Pull Request #25566 · getsentry/sentry-javascript · GitHub

Open Graph Title: fix(core): preserve span links through beforeSendSpan by chiliec · Pull Request #25566 · getsentry/sentry-javascript

X Title: fix(core): preserve span links through beforeSendSpan by chiliec · Pull Request #25566 · getsentry/sentry-javascript

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

Open Graph Description: Fixes #25545 Problem Setting beforeSendSpan — even an identity callback (span) => span — drops the root span's contexts.trace.links from every transaction, so the previous_trace link is lost...

X Description: Fixes #25545 Problem Setting beforeSendSpan — even an identity callback (span) => span — drops the root span's contexts.trace.links from every transaction, so the previous_trace link...

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

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:60b7a534-b7f7-5114-910a-0bbd2294383f
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-id90D6:213B67:18F53F:2188D1:6B043784
html-safe-nonce56b45fc286b47a3354231406c5e7be24b129c9b3dca8c4a36b0456efb091aec8
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5MEQ2OjIxM0I2NzoxOEY1M0Y6MjE4OEQxOjZCMDQzNzg0IiwidmlzaXRvcl9pZCI6IjcwOTMzNzMzNDQyNDYxNTEwNDQiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmacdae2ff32795c1b3547383adcaae838adb3c727351c1db269ea87d25a19326035
hovercard-subject-tagpull_request:4937729715
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/25566/pull_request_layout
twitter:imagehttps://opengraph.githubassets.com/5bcce4c74f14851ceffc7c942b9a6814b2fb152e5726f1c6600ba78bfd7dd50d/getsentry/sentry-javascript/pull/25566
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/5bcce4c74f14851ceffc7c942b9a6814b2fb152e5726f1c6600ba78bfd7dd50d/getsentry/sentry-javascript/pull/25566
og:image:altFixes #25545 Problem Setting beforeSendSpan — even an identity callback (span) => span — drops the root span's contexts.trace.links from every transaction, so the previous_trace link is lost...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamechiliec
hostnamegithub.com
expected-hostnamegithub.com
Noneb7a1d2b9101496921b08579fbee988d014345aef2f5bd660d1f8c7332d81560e
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
releasec3dd496c3da6ea6b77e69c09279d2b81604654f1
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-namepull-requests

Links:

Skip to contenthttps://github.com/getsentry/sentry-javascript/pull/25566#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fgetsentry%2Fsentry-javascript%2Fpull%2F25566
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%2F25566
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/25566
Reloadhttps://github.com/getsentry/sentry-javascript/pull/25566
Reloadhttps://github.com/getsentry/sentry-javascript/pull/25566
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
nicohrubechttps://github.com/nicohrubec
getsentry:develophttps://github.com/getsentry/sentry-javascript/tree/develop
chiliec:fix/beforesendspan-drops-span-linkshttps://github.com/chiliec/sentry-javascript/tree/fix/beforesendspan-drops-span-links
Conversationhttps://github.com/getsentry/sentry-javascript/pull/25566
Commits4 (4)https://github.com/getsentry/sentry-javascript/pull/25566/commits
Checkshttps://github.com/getsentry/sentry-javascript/pull/25566/checks
Files changedhttps://github.com/getsentry/sentry-javascript/pull/25566/files
fix(core): preserve span links through beforeSendSpanhttps://github.com/getsentry/sentry-javascript/pull/25566#top
nicohrubechttps://github.com/nicohrubec
getsentry:develophttps://github.com/getsentry/sentry-javascript/tree/develop
chiliec:fix/beforesendspan-drops-span-linkshttps://github.com/chiliec/sentry-javascript/tree/fix/beforesendspan-drops-span-links
https://github.com/chiliec
chiliechttps://github.com/chiliec
Oct 20, 2026https://github.com/getsentry/sentry-javascript/pull/25566#issue-5944031512
Please reload this pagehttps://github.com/getsentry/sentry-javascript/pull/25566
#25545https://github.com/getsentry/sentry-javascript/issues/25545
@arobisonhttps://github.com/arobison
Please reload this pagehttps://github.com/getsentry/sentry-javascript/pull/25566
https://github.com/apps/github-actions
github-actionshttps://github.com/apps/github-actions
external https://github.com/getsentry/sentry-javascript/issues?q=state%3Aopen%20label%3Aexternal
Oct 20, 2026https://github.com/getsentry/sentry-javascript/pull/25566#event-33754358999
https://github.com/apps/cursor
cursorhttps://github.com/apps/cursor
Oct 20, 2026 https://github.com/getsentry/sentry-javascript/pull/25566#pullrequestreview-5586989185
View reviewed changes https://github.com/getsentry/sentry-javascript/pull/25566/files
cursorhttps://github.com/apps/cursor
Please reload this pagehttps://github.com/getsentry/sentry-javascript/pull/25566
https://github.com/getsentry/sentry-javascript/pull/25566#pullrequestreview-5586989185
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/getsentry/sentry-javascript/pull/25566
packages/core/test/lib/utils/transactionEvent.test.tshttps://github.com/getsentry/sentry-javascript/pull/25566/files#diff-04579e70acda4f16132bcc50455656b07877de3f97c7b386994c08e0d40a1145
Please reload this pagehttps://github.com/getsentry/sentry-javascript/pull/25566
https://github.com/logaretm
logaretmhttps://github.com/logaretm
Oct 20, 2026 https://github.com/getsentry/sentry-javascript/pull/25566#pullrequestreview-5589615320
View reviewed changes https://github.com/getsentry/sentry-javascript/pull/25566/files
logaretmhttps://github.com/logaretm
https://github.com/getsentry/sentry-javascript/pull/25566#pullrequestreview-5589615320
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/getsentry/sentry-javascript/pull/25566
packages/core/test/lib/utils/transactionEvent.test.tshttps://github.com/getsentry/sentry-javascript/pull/25566/files#diff-04579e70acda4f16132bcc50455656b07877de3f97c7b386994c08e0d40a1145
logaretmhttps://github.com/logaretm
Oct 20, 2026https://github.com/getsentry/sentry-javascript/pull/25566#discussion_r4328610343
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/getsentry/sentry-javascript/pull/25566
packages/core/test/lib/utils/transactionEvent.test.tshttps://github.com/getsentry/sentry-javascript/pull/25566/files#diff-04579e70acda4f16132bcc50455656b07877de3f97c7b386994c08e0d40a1145
Please reload this pagehttps://github.com/getsentry/sentry-javascript/pull/25566
https://github.com/chiliec
chiliechttps://github.com/chiliec
Oct 21, 2026https://github.com/getsentry/sentry-javascript/pull/25566#issuecomment-6308124172
Please reload this pagehttps://github.com/getsentry/sentry-javascript/pull/25566
chiliechttps://github.com/chiliec
November 2, 2026 15:55https://github.com/getsentry/sentry-javascript/pull/25566#commits-pushed-afabe44
https://github.com/chiliec
https://github.com/logaretm
fix(core): preserve span links through beforeSendSpanhttps://github.com/getsentry/sentry-javascript/pull/25566/commits/afabe44a39c6df1707b7ef9f3299fcb3e892bfd8
afabe44https://github.com/getsentry/sentry-javascript/pull/25566/commits/afabe44a39c6df1707b7ef9f3299fcb3e892bfd8
getsentry#25545https://github.com/getsentry/sentry-javascript/issues/25545
https://github.com/chiliec
https://github.com/logaretm
test(core): assert span links on the sent transaction with beforeSend…https://github.com/getsentry/sentry-javascript/pull/25566/commits/2ef36f4684cccdd6e2d1aef3ca40e9a8540299b0
2ef36f4https://github.com/getsentry/sentry-javascript/pull/25566/commits/2ef36f4684cccdd6e2d1aef3ca40e9a8540299b0
https://github.com/logaretm
logaretmhttps://github.com/logaretm
force-pushedhttps://github.com/getsentry/sentry-javascript/compare/b54dd70227bf40606daa3f8a9db9f216ff02a6d4..2ef36f4684cccdd6e2d1aef3ca40e9a8540299b0
b54dd70https://github.com/getsentry/sentry-javascript/commit/b54dd70227bf40606daa3f8a9db9f216ff02a6d4
2ef36f4https://github.com/getsentry/sentry-javascript/commit/2ef36f4684cccdd6e2d1aef3ca40e9a8540299b0
Compare https://github.com/getsentry/sentry-javascript/compare/b54dd70227bf40606daa3f8a9db9f216ff02a6d4..2ef36f4684cccdd6e2d1aef3ca40e9a8540299b0
November 2, 2026 20:55https://github.com/getsentry/sentry-javascript/pull/25566#event-34954378835
https://github.com/logaretm
logaretmhttps://github.com/logaretm
code ownershttps://github.com/getsentry/sentry-javascript/blob/e6a7a4c1860865640f1f804199dbf358219e81d5/.github/CODEOWNERS#L2
November 2, 2026 20:55https://github.com/getsentry/sentry-javascript/pull/25566#event-34954379029
https://github.com/logaretm
logaretmhttps://github.com/logaretm
andreiborzahttps://github.com/andreiborza
isaacshttps://github.com/isaacs
logaretmhttps://github.com/logaretm
msonnbhttps://github.com/msonnb
nicohrubechttps://github.com/nicohrubec
s1gr1dhttps://github.com/s1gr1d
November 2, 2026 20:55https://github.com/getsentry/sentry-javascript/pull/25566#event-34954380636
https://github.com/logaretm
logaretmhttps://github.com/logaretm
Nov 2, 2026 https://github.com/getsentry/sentry-javascript/pull/25566#pullrequestreview-5743198817
View reviewed changes https://github.com/getsentry/sentry-javascript/pull/25566/files/556dbc72cb88c50b42bd31f03f617e2f1f0c4180
logaretmhttps://github.com/logaretm
https://github.com/getsentry/sentry-javascript/pull/25566#pullrequestreview-5743198817
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/getsentry/sentry-javascript/pull/25566
https://github.com/apps/cursor
cursorhttps://github.com/apps/cursor
Nov 2, 2026 https://github.com/getsentry/sentry-javascript/pull/25566#pullrequestreview-5743242668
View reviewed changes https://github.com/getsentry/sentry-javascript/pull/25566/files/2ef36f4684cccdd6e2d1aef3ca40e9a8540299b0
cursorhttps://github.com/apps/cursor
https://github.com/getsentry/sentry-javascript/pull/25566#pullrequestreview-5743242668
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
https://cursor.com/open?link=eyJ2ZXJzaW9uIjoxLCJ0eXBlIjoiQlVHQk9UX0ZJWF9BTExfSU5fQ1VSU09SIiwiZGF0YSI6eyJyZWRpc0tleSI6ImJ1Z2JvdC1tdWx0aToyYWEwMDc5YS0zZDY0LTQ2YjEtYjJkNy1jYjJjMmNjMzA5MzciLCJlbmNyeXB0aW9uS2V5Ijoia2hPbEZ6Q2ZOaHBXZ25tZWRmVUZqNFowRUQyeDFHVjdPNFB6OU00X0pqUSIsImJyYW5jaCI6ImZpeC9iZWZvcmVzZW5kc3Bhbi1kcm9wcy1zcGFuLWxpbmtzIiwicmVwb093bmVyIjoiZ2V0c2VudHJ5IiwicmVwb05hbWUiOiJzZW50cnktamF2YXNjcmlwdCIsInByb3ZpZGVyIjoiZ2l0aHViIn19
Cursor dashboardhttps://www.cursor.com/dashboard/bugbot
Cursor dashboardhttps://www.cursor.com/dashboard/bugbot/repository-rules/11898?manageLearning=1
Cursor Bugbothttps://cursor.com/bugbot
2ef36f4https://github.com/getsentry/sentry-javascript/commit/2ef36f4684cccdd6e2d1aef3ca40e9a8540299b0
herehttps://www.cursor.com/dashboard/bugbot
Please reload this pagehttps://github.com/getsentry/sentry-javascript/pull/25566
packages/core/test/lib/client.test.tshttps://github.com/getsentry/sentry-javascript/pull/25566/files/2ef36f4684cccdd6e2d1aef3ca40e9a8540299b0#diff-e79bc4038039a6f4140bac84dc7576e6e16f7622aeeb2dbbeb37bac176ccbee6
Please reload this pagehttps://github.com/getsentry/sentry-javascript/pull/25566
https://github.com/nicohrubec
nicohrubechttps://github.com/nicohrubec
Nov 3, 2026 https://github.com/getsentry/sentry-javascript/pull/25566#pullrequestreview-5748788465
View reviewed changes https://github.com/getsentry/sentry-javascript/pull/25566/files/556dbc72cb88c50b42bd31f03f617e2f1f0c4180
nicohrubechttps://github.com/nicohrubec
November 3, 2026 09:05https://github.com/getsentry/sentry-javascript/pull/25566#commits-pushed-556dbc7
https://github.com/nicohrubec
Merge branch 'develop' into fix/beforesendspan-drops-span-linkshttps://github.com/getsentry/sentry-javascript/pull/25566/commits/556dbc72cb88c50b42bd31f03f617e2f1f0c4180
556dbc7https://github.com/getsentry/sentry-javascript/pull/25566/commits/556dbc72cb88c50b42bd31f03f617e2f1f0c4180
https://github.com/nicohrubec
https://github.com/codex
chore: Remove misplaced span links changelog entryhttps://github.com/getsentry/sentry-javascript/pull/25566/commits/3c2572bb1c3bcadeddc6d70f9182e52033903055
3c2572bhttps://github.com/getsentry/sentry-javascript/pull/25566/commits/3c2572bb1c3bcadeddc6d70f9182e52033903055
https://github.com/nicohrubec
nicohrubechttps://github.com/nicohrubec
b61bd60https://github.com/getsentry/sentry-javascript/commit/b61bd60143a8806dc4f0e3721132f3e6cbecd02d
Nov 3, 2026https://github.com/getsentry/sentry-javascript/pull/25566#event-34997219439
Please reload this pagehttps://github.com/getsentry/sentry-javascript/pull/25566
https://github.com/apps/sentry-release-bot
sentry-release-bothttps://github.com/apps/sentry-release-bot
Nov 5, 2026 https://github.com/getsentry/sentry-javascript/pull/25566#ref-issue-6223006180
publish: getsentry/sentry-javascript@11.11.0 getsentry/publish#10234 https://github.com/getsentry/publish/issues/10234
https://github.com/apps/github-actions
github-actionshttps://github.com/apps/github-actions
Nov 5, 2026 https://github.com/getsentry/sentry-javascript/pull/25566#ref-issue-5933098944
Setting beforeSendSpan drops the root span's links from transactions (loses the previous_trace link) #25545 https://github.com/getsentry/sentry-javascript/issues/25545
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%2F25566
https://github.com/apps/cursor
cursor[bot] https://github.com/apps/cursor
https://github.com/getsentry/sentry-javascript/pull/25566/files/2ef36f4684cccdd6e2d1aef3ca40e9a8540299b0
https://github.com/logaretm
logaretm https://github.com/logaretm
https://github.com/getsentry/sentry-javascript/pull/25566/files/556dbc72cb88c50b42bd31f03f617e2f1f0c4180
https://github.com/nicohrubec
nicohrubec https://github.com/nicohrubec
https://github.com/getsentry/sentry-javascript/pull/25566/files/556dbc72cb88c50b42bd31f03f617e2f1f0c4180
https://github.com/msonnb
msonnb https://github.com/msonnb
https://github.com/isaacs
isaacs https://github.com/isaacs
https://github.com/andreiborza
andreiborza https://github.com/andreiborza
https://github.com/s1gr1d
s1gr1d https://github.com/s1gr1d
Please reload this pagehttps://github.com/getsentry/sentry-javascript/pull/25566
external https://github.com/getsentry/sentry-javascript/issues?q=state%3Aopen%20label%3Aexternal
Setting beforeSendSpan drops the root span's links from transactions (loses the previous_trace link) https://github.com/getsentry/sentry-javascript/issues/25545
Please reload this pagehttps://github.com/getsentry/sentry-javascript/pull/25566
https://github.com/chiliec
https://github.com/logaretm
https://github.com/nicohrubec
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.