René's URL Explorer Experiment


Title: feat(browser): Add `previous_trace` span links by Lms24 · Pull Request #15569 · getsentry/sentry-javascript · GitHub

Open Graph Title: feat(browser): Add `previous_trace` span links by Lms24 · Pull Request #15569 · getsentry/sentry-javascript

X Title: feat(browser): Add `previous_trace` span links by Lms24 · Pull Request #15569 · 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 PR adds logic to set the previous_trace span link on root spans (via browserTracingIntegration). Some notes: added linkPreviousTrace integration option to control the trace linking behaviour...

X Description: This PR adds logic to set the previous_trace span link on root spans (via browserTracingIntegration). Some notes: added linkPreviousTrace integration option to control the trace linking behaviour...

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

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:28e3aff7-57ec-3ee6-e4ba-f7067024ba5c
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idB1DA:13A804:1D00C8:288A91:6B040681
html-safe-nonce8d1a279ca7df121e5192badfd277af12f74138d458ae5b4a32dd1cc16d05bc6e
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCMURBOjEzQTgwNDoxRDAwQzg6Mjg4QTkxOjZCMDQwNjgxIiwidmlzaXRvcl9pZCI6IjI4MDM3NzM2NDkyNjQ1NzYxMjkiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmacc113e285d5b578c2cefb8ec8852beffac3c9761ab949e977bd9bc8c32a857711
hovercard-subject-tagpull_request:2370800387
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/15569/pull_request_layout
twitter:imagehttps://opengraph.githubassets.com/de1b8ead31955f2daeb1da9b0e0be393c26c32a50fe94d6bda707eeb9e907d93/getsentry/sentry-javascript/pull/15569
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/de1b8ead31955f2daeb1da9b0e0be393c26c32a50fe94d6bda707eeb9e907d93/getsentry/sentry-javascript/pull/15569
og:image:altThis PR adds logic to set the previous_trace span link on root spans (via browserTracingIntegration). Some notes: added linkPreviousTrace integration option to control the trace linking behaviour...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameLms24
hostnamegithub.com
expected-hostnamegithub.com
None87e774ee7c6b3bee0490394e4d3e57ec9dbc956f74b87ea685dc8996c1676456
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
release423dbb54c5e7bfecc838eb387c1435eb3d0e760d
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-namepull-requests

Links:

Skip to contenthttps://github.com/getsentry/sentry-javascript/pull/15569#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fgetsentry%2Fsentry-javascript%2Fpull%2F15569
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%2F15569
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/15569
Reloadhttps://github.com/getsentry/sentry-javascript/pull/15569
Reloadhttps://github.com/getsentry/sentry-javascript/pull/15569
getsentryhttps://github.com/getsentry
sentry-javascripthttps://github.com/getsentry/sentry-javascript
Codehttps://github.com/getsentry/sentry-javascript
Issues342 (342)https://github.com/getsentry/sentry-javascript/issues
Pull requests60 (60)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
Lms24https://github.com/Lms24
develophttps://github.com/getsentry/sentry-javascript/tree/develop
lms/feat-previous-trace-linkshttps://github.com/getsentry/sentry-javascript/tree/lms/feat-previous-trace-links
Conversationhttps://github.com/getsentry/sentry-javascript/pull/15569
Commits15 (15)https://github.com/getsentry/sentry-javascript/pull/15569/commits
Checkshttps://github.com/getsentry/sentry-javascript/pull/15569/checks
Files changedhttps://github.com/getsentry/sentry-javascript/pull/15569/files
feat(browser): Add previous_trace span linkshttps://github.com/getsentry/sentry-javascript/pull/15569#top
Lms24https://github.com/Lms24
develophttps://github.com/getsentry/sentry-javascript/tree/develop
lms/feat-previous-trace-linkshttps://github.com/getsentry/sentry-javascript/tree/lms/feat-previous-trace-links
https://github.com/Lms24
Lms24https://github.com/Lms24
Mar 4, 2025https://github.com/getsentry/sentry-javascript/pull/15569#issue-2894234285
Please reload this pagehttps://github.com/getsentry/sentry-javascript/pull/15569
Add option to sample linked traces consistently #15754https://github.com/getsentry/sentry-javascript/issues/15754
#14992https://github.com/getsentry/sentry-javascript/issues/14992
Please reload this pagehttps://github.com/getsentry/sentry-javascript/pull/15569
https://github.com/apps/github-actions
github-actionshttps://github.com/apps/github-actions
Mar 4, 2025https://github.com/getsentry/sentry-javascript/pull/15569#issuecomment-2697571248
Please reload this pagehttps://github.com/getsentry/sentry-javascript/pull/15569
View base workflow runhttps://github.com/getsentry/sentry-javascript/actions/runs/13988683578
Please reload this pagehttps://github.com/getsentry/sentry-javascript/pull/15569
https://github.com/Lms24
Lms24https://github.com/Lms24
Mar 4, 2025https://github.com/getsentry/sentry-javascript/pull/15569#event-16558686486
https://github.com/Lms24
Lms24https://github.com/Lms24
force-pushedhttps://github.com/getsentry/sentry-javascript/compare/66ec822600b6f49c4f649b1f310fe699e0c74036..45bc7904e1769e0761b6136b0887d11dd3e062ae
66ec822https://github.com/getsentry/sentry-javascript/commit/66ec822600b6f49c4f649b1f310fe699e0c74036
45bc790https://github.com/getsentry/sentry-javascript/commit/45bc7904e1769e0761b6136b0887d11dd3e062ae
Compare https://github.com/getsentry/sentry-javascript/compare/66ec822600b6f49c4f649b1f310fe699e0c74036..45bc7904e1769e0761b6136b0887d11dd3e062ae
March 19, 2025 15:40https://github.com/getsentry/sentry-javascript/pull/15569#event-16869758164
https://github.com/Lms24
Lms24https://github.com/Lms24
March 20, 2025 11:51https://github.com/getsentry/sentry-javascript/pull/15569#event-16907075995
https://github.com/Lms24
Lms24https://github.com/Lms24
mydeahttps://github.com/mydea
s1gr1dhttps://github.com/s1gr1d
March 20, 2025 11:51https://github.com/getsentry/sentry-javascript/pull/15569#event-16907078715
https://github.com/s1gr1d
s1gr1dhttps://github.com/s1gr1d
Mar 20, 2025 https://github.com/getsentry/sentry-javascript/pull/15569#pullrequestreview-2702535341
View reviewed changes https://github.com/getsentry/sentry-javascript/pull/15569/files
packages/browser/src/tracing/browserTracingIntegration.tshttps://github.com/getsentry/sentry-javascript/pull/15569/files#diff-e3ed4edecccdaefa32cf9f7ef5e779e7d6d342e3db70dcbe063ea220487e9816
s1gr1dhttps://github.com/s1gr1d
Mar 20, 2025https://github.com/getsentry/sentry-javascript/pull/15569#discussion_r2005537698
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/getsentry/sentry-javascript/pull/15569
Lms24https://github.com/Lms24
Mar 20, 2025https://github.com/getsentry/sentry-javascript/pull/15569#discussion_r2005758776
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/getsentry/sentry-javascript/pull/15569
Lms24https://github.com/Lms24
Mar 21, 2025https://github.com/getsentry/sentry-javascript/pull/15569#discussion_r2007228755
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
b44e790https://github.com/getsentry/sentry-javascript/pull/15569/commits/b44e790babb1f8d4365f667047d6afa309ebb044
Please reload this pagehttps://github.com/getsentry/sentry-javascript/pull/15569
packages/browser/src/tracing/previousTrace.tshttps://github.com/getsentry/sentry-javascript/pull/15569/files#diff-e17e90c3d54495dac5713942ea0540fbf738ef0dd8e151f0a66e44179b7393ed
Please reload this pagehttps://github.com/getsentry/sentry-javascript/pull/15569
Lms24https://github.com/Lms24
March 20, 2025 15:24https://github.com/getsentry/sentry-javascript/pull/15569#commits-pushed-4670a6c
https://github.com/Lms24
feat(browser): Add previous_trace span linkshttps://github.com/getsentry/sentry-javascript/pull/15569/commits/4670a6c72927f372134d5a3721930dc63ff99dcf
4670a6chttps://github.com/getsentry/sentry-javascript/pull/15569/commits/4670a6c72927f372134d5a3721930dc63ff99dcf
https://github.com/Lms24
wiphttps://github.com/getsentry/sentry-javascript/pull/15569/commits/ee29ca45cc7d1404a98d8a0ba633b1d5e683a3ef
ee29ca4https://github.com/getsentry/sentry-javascript/pull/15569/commits/ee29ca45cc7d1404a98d8a0ba633b1d5e683a3ef
https://github.com/Lms24
use spanStart client hook instead; adjust testshttps://github.com/getsentry/sentry-javascript/pull/15569/commits/a8fba247fa52a96ee6e2082c0de1e0080cbd2c4f
a8fba24https://github.com/getsentry/sentry-javascript/pull/15569/commits/a8fba247fa52a96ee6e2082c0de1e0080cbd2c4f
https://github.com/Lms24
revert client changehttps://github.com/getsentry/sentry-javascript/pull/15569/commits/b9dba9f788f2a582b9d09c8dacdd506efba79c22
b9dba9fhttps://github.com/getsentry/sentry-javascript/pull/15569/commits/b9dba9f788f2a582b9d09c8dacdd506efba79c22
https://github.com/Lms24
account for custom traces and traces with more than 1 root spanhttps://github.com/getsentry/sentry-javascript/pull/15569/commits/8b66941c11265884f1b35e418b4f810626207a78
8b66941https://github.com/getsentry/sentry-javascript/pull/15569/commits/8b66941c11265884f1b35e418b4f810626207a78
https://github.com/Lms24
add more unit testshttps://github.com/getsentry/sentry-javascript/pull/15569/commits/94a5f4410ae3c4c19e686c34d5283baf4e31a068
94a5f44https://github.com/getsentry/sentry-javascript/pull/15569/commits/94a5f4410ae3c4c19e686c34d5283baf4e31a068
https://github.com/Lms24
cleanuphttps://github.com/getsentry/sentry-javascript/pull/15569/commits/55e3ac37116559297a9959995d3f89b0437995fd
55e3ac3https://github.com/getsentry/sentry-javascript/pull/15569/commits/55e3ac37116559297a9959995d3f89b0437995fd
https://github.com/Lms24
more testshttps://github.com/getsentry/sentry-javascript/pull/15569/commits/e1630d624c8a974589056a72e81d7b96adf3cac7
e1630d6https://github.com/getsentry/sentry-javascript/pull/15569/commits/e1630d624c8a974589056a72e81d7b96adf3cac7
https://github.com/Lms24
size limithttps://github.com/getsentry/sentry-javascript/pull/15569/commits/0a6ca94e1862ae697d260b702b4e554febce5d1d
0a6ca94https://github.com/getsentry/sentry-javascript/pull/15569/commits/0a6ca94e1862ae697d260b702b4e554febce5d1d
https://github.com/Lms24
linthttps://github.com/getsentry/sentry-javascript/pull/15569/commits/3320e74bc09b40a3c6a6115a9733e99406da4286
3320e74https://github.com/getsentry/sentry-javascript/pull/15569/commits/3320e74bc09b40a3c6a6115a9733e99406da4286
https://github.com/Lms24
fix e2e testshttps://github.com/getsentry/sentry-javascript/pull/15569/commits/6c42afd4be107a591b3f05ae097f42116ea36346
6c42afdhttps://github.com/getsentry/sentry-javascript/pull/15569/commits/6c42afd4be107a591b3f05ae097f42116ea36346
https://github.com/Lms24
Lms24https://github.com/Lms24
force-pushedhttps://github.com/getsentry/sentry-javascript/compare/0550ac67dfc0246559c97bf0e2cbce7ad015885f..6c42afd4be107a591b3f05ae097f42116ea36346
0550ac6https://github.com/getsentry/sentry-javascript/commit/0550ac67dfc0246559c97bf0e2cbce7ad015885f
6c42afdhttps://github.com/getsentry/sentry-javascript/commit/6c42afd4be107a591b3f05ae097f42116ea36346
Compare https://github.com/getsentry/sentry-javascript/compare/0550ac67dfc0246559c97bf0e2cbce7ad015885f..6c42afd4be107a591b3f05ae097f42116ea36346
March 20, 2025 14:25https://github.com/getsentry/sentry-javascript/pull/15569#event-16911485577
Lms24https://github.com/Lms24
March 21, 2025 10:50https://github.com/getsentry/sentry-javascript/pull/15569#commits-pushed-b44e790
https://github.com/Lms24
change to only one option (linkPreviousTrace)https://github.com/getsentry/sentry-javascript/pull/15569/commits/b44e790babb1f8d4365f667047d6afa309ebb044
b44e790https://github.com/getsentry/sentry-javascript/pull/15569/commits/b44e790babb1f8d4365f667047d6afa309ebb044
https://github.com/Lms24
fix 2 more e2e testshttps://github.com/getsentry/sentry-javascript/pull/15569/commits/5e8300b45977b6eac1b1b0b7a75ed9fcdbeb575a
5e8300bhttps://github.com/getsentry/sentry-javascript/pull/15569/commits/5e8300b45977b6eac1b1b0b7a75ed9fcdbeb575a
https://github.com/Lms24
add comment for max duratiohttps://github.com/getsentry/sentry-javascript/pull/15569/commits/be5b5261bd3c3352b88e8721218e0876b28bda40
be5b526https://github.com/getsentry/sentry-javascript/pull/15569/commits/be5b5261bd3c3352b88e8721218e0876b28bda40
https://github.com/Lms24
Lms24https://github.com/Lms24
s1gr1dhttps://github.com/s1gr1d
March 21, 2025 09:56https://github.com/getsentry/sentry-javascript/pull/15569#event-16925532373
https://github.com/Lms24
cleanuphttps://github.com/getsentry/sentry-javascript/pull/15569/commits/0a465f88caf2c094d341288c4b0de49f9d27ac34
0a465f8https://github.com/getsentry/sentry-javascript/pull/15569/commits/0a465f88caf2c094d341288c4b0de49f9d27ac34
https://github.com/s1gr1d
s1gr1dhttps://github.com/s1gr1d
Mar 21, 2025 https://github.com/getsentry/sentry-javascript/pull/15569#pullrequestreview-2705372647
View reviewed changes https://github.com/getsentry/sentry-javascript/pull/15569/files/0a465f88caf2c094d341288c4b0de49f9d27ac34
s1gr1dhttps://github.com/s1gr1d
https://github.com/getsentry/sentry-javascript/pull/15569#pullrequestreview-2705372647
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/getsentry/sentry-javascript/pull/15569
https://github.com/Lms24
Lms24https://github.com/Lms24
1a4fa0chttps://github.com/getsentry/sentry-javascript/commit/1a4fa0cf5752ca6e07681df43f2e12404aa28f9e
Mar 21, 2025https://github.com/getsentry/sentry-javascript/pull/15569#event-16925887757
https://github.com/Lms24
Lms24https://github.com/Lms24
March 21, 2025 10:21https://github.com/getsentry/sentry-javascript/pull/15569#event-16925888118
https://github.com/Lms24
Lms24https://github.com/Lms24
Mar 21, 2025 https://github.com/getsentry/sentry-javascript/pull/15569#ref-pullrequest-2938138564
fix(browser): Fix incorrect previous trace max duration #15782 https://github.com/getsentry/sentry-javascript/pull/15782
https://github.com/apps/github-actions
github-actionshttps://github.com/apps/github-actions
Mar 24, 2025 https://github.com/getsentry/sentry-javascript/pull/15569#ref-issue-2784059799
Add previous_trace span link to browserTracingIntegration root spans #14992 https://github.com/getsentry/sentry-javascript/issues/14992
mergifyhttps://github.com/apps/mergify
Apr 17, 2025 https://github.com/getsentry/sentry-javascript/pull/15569#ref-commit-bdb8a86
https://github.com/marketplace/mergify
[Snyk] Upgrade @sentry/browser from 9.7.0 to 9.9.0 (https://github.com/reisene/HulajDusza-serwis/commit/bdb8a8643a676c9de502ffb31142b144a31349a8
#340https://github.com/reisene/HulajDusza-serwis/pull/340
)https://github.com/reisene/HulajDusza-serwis/commit/bdb8a8643a676c9de502ffb31142b144a31349a8
bdb8a86https://github.com/reisene/HulajDusza-serwis/commit/bdb8a8643a676c9de502ffb31142b144a31349a8
https://badgen.net/badge/icon/snyk-io%5Bbot%5D/green?label=https://badgen.net/badge/icon/snyk-io%5Bbot%5D/green?label=
https://badgen.net/badge/icon/Contributor/000000?label=https://badgen.net/badge/icon/Contributor/000000?label=
https://user-images.githubusercontent.com/1393946/111216524-d2bb8e00-85d4-11eb-821b-ed4c00989c02.png">](https://pullrequestbadge.com/?utm_medium=github&utm_source=reisene&utm_campaign=badge_info)