René's URL Explorer Experiment


Title: ref(opentelemetry): Avoid sampling work for non-root spans by mydea · Pull Request #15820 · getsentry/sentry-javascript · GitHub

Open Graph Title: ref(opentelemetry): Avoid sampling work for non-root spans by mydea · Pull Request #15820 · getsentry/sentry-javascript

X Title: ref(opentelemetry): Avoid sampling work for non-root spans by mydea · Pull Request #15820 · getsentry/sentry-javascript

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

Open Graph Description: Related to #15725 (comment) When a span is not a root span, we do not need to do sampling work for it. By reordering stuff in the shouldSample function, we should be able to save a bunch of operati...

X Description: Related to #15725 (comment) When a span is not a root span, we do not need to do sampling work for it. By reordering stuff in the shouldSample function, we should be able to save a bunch of operati...

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

X: @github

direct link

Domain: github.com

IPv4 address: 140.82.113.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:1362e0cd-69a0-34e2-2684-22afc66a5ed1
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idDBB8:3CC073:3E76AFD:531C2FD:6B03FCB2
html-safe-noncedf6417e06198bb41ab4b6cc5aa3ba19ed918e47bd228c8ff2470eb5b975431ef
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEQkI4OjNDQzA3MzozRTc2QUZEOjUzMUMyRkQ6NkIwM0ZDQjIiLCJ2aXNpdG9yX2lkIjoiODcyOTk4MjgxNzIwOTE1NDczOCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac028693a303a425809241d958d46e0c35bac81f73bd34a9bd15c8e9f36997b3c5
hovercard-subject-tagpull_request:2416253713
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/15820/pull_request_layout
twitter:imagehttps://opengraph.githubassets.com/0d72760e9e9e37dc65ff5ac9de7c1a187ba1f8416f614267d0564fae5dd169cf/getsentry/sentry-javascript/pull/15820
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/0d72760e9e9e37dc65ff5ac9de7c1a187ba1f8416f614267d0564fae5dd169cf/getsentry/sentry-javascript/pull/15820
og:image:altRelated to #15725 (comment) When a span is not a root span, we do not need to do sampling work for it. By reordering stuff in the shouldSample function, we should be able to save a bunch of operati...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamemydea
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/15820#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fgetsentry%2Fsentry-javascript%2Fpull%2F15820
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%2F15820
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/15820
Reloadhttps://github.com/getsentry/sentry-javascript/pull/15820
Reloadhttps://github.com/getsentry/sentry-javascript/pull/15820
getsentryhttps://github.com/getsentry
sentry-javascripthttps://github.com/getsentry/sentry-javascript
Codehttps://github.com/getsentry/sentry-javascript
Issues345 (345)https://github.com/getsentry/sentry-javascript/issues
Pull requests64 (64)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
fn/streamline-sampling-spanshttps://github.com/getsentry/sentry-javascript/tree/fn/streamline-sampling-spans
Conversationhttps://github.com/getsentry/sentry-javascript/pull/15820
Commits2 (2)https://github.com/getsentry/sentry-javascript/pull/15820/commits
Checkshttps://github.com/getsentry/sentry-javascript/pull/15820/checks
Files changedhttps://github.com/getsentry/sentry-javascript/pull/15820/files
ref(opentelemetry): Avoid sampling work for non-root spanshttps://github.com/getsentry/sentry-javascript/pull/15820#top
mydeahttps://github.com/mydea
develophttps://github.com/getsentry/sentry-javascript/tree/develop
fn/streamline-sampling-spanshttps://github.com/getsentry/sentry-javascript/tree/fn/streamline-sampling-spans
https://github.com/mydea
mydeahttps://github.com/mydea
Mar 25, 2025https://github.com/getsentry/sentry-javascript/pull/15820#issue-2946078435
#15725 (comment)https://github.com/getsentry/sentry-javascript/issues/15725#issuecomment-2742022649
Please reload this pagehttps://github.com/getsentry/sentry-javascript/pull/15820
https://github.com/mydea
mydeahttps://github.com/mydea
AbhiPrasadhttps://github.com/AbhiPrasad
lforsthttps://github.com/lforst
March 25, 2025 10:39https://github.com/getsentry/sentry-javascript/pull/15820#event-16971993296
https://github.com/mydea
mydeahttps://github.com/mydea
Mar 25, 2025https://github.com/getsentry/sentry-javascript/pull/15820#event-16971993347
https://github.com/mydea
mydeahttps://github.com/mydea
Mar 25, 2025https://github.com/getsentry/sentry-javascript/pull/15820#event-16971996806
https://github.com/AbhiPrasad
AbhiPrasadhttps://github.com/AbhiPrasad
Mar 25, 2025 https://github.com/getsentry/sentry-javascript/pull/15820#pullrequestreview-2713873206
View reviewed changes https://github.com/getsentry/sentry-javascript/pull/15820/files
packages/opentelemetry/src/sampler.tshttps://github.com/getsentry/sentry-javascript/pull/15820/files#diff-9b17ecc72b76dd1c3a8d41165d42c20e6ad303924f0060d2775cd23e300a8f97
AbhiPrasadhttps://github.com/AbhiPrasad
Mar 25, 2025https://github.com/getsentry/sentry-javascript/pull/15820#discussion_r2012168194
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/getsentry/sentry-javascript/pull/15820
mydeahttps://github.com/mydea
Mar 25, 2025https://github.com/getsentry/sentry-javascript/pull/15820#discussion_r2012380189
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
@lforsthttps://github.com/lforst
Please reload this pagehttps://github.com/getsentry/sentry-javascript/pull/15820
lforsthttps://github.com/lforst
Mar 26, 2025https://github.com/getsentry/sentry-javascript/pull/15820#discussion_r2014022300
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/getsentry/sentry-javascript/pull/15820
mydeahttps://github.com/mydea
Mar 26, 2025https://github.com/getsentry/sentry-javascript/pull/15820#discussion_r2014197507
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/getsentry/sentry-javascript/pull/15820
mydeahttps://github.com/mydea
March 26, 2025 10:58https://github.com/getsentry/sentry-javascript/pull/15820#commits-pushed-be92638
https://github.com/mydea
ref: Avoid sampling work for non-root spanshttps://github.com/getsentry/sentry-javascript/pull/15820/commits/be92638f7fc9104fc00f3884912b1e8e2f3af19c
be92638https://github.com/getsentry/sentry-javascript/pull/15820/commits/be92638f7fc9104fc00f3884912b1e8e2f3af19c
https://github.com/mydea
small refhttps://github.com/getsentry/sentry-javascript/pull/15820/commits/f47b0d89f8e054d8d634e176381f99c65e0dc163
f47b0d8https://github.com/getsentry/sentry-javascript/pull/15820/commits/f47b0d89f8e054d8d634e176381f99c65e0dc163
https://github.com/mydea
mydeahttps://github.com/mydea
force-pushedhttps://github.com/getsentry/sentry-javascript/compare/a1f2f91b1efcf1c838cc7274f992413b4ae47fcb..f47b0d89f8e054d8d634e176381f99c65e0dc163
a1f2f91https://github.com/getsentry/sentry-javascript/commit/a1f2f91b1efcf1c838cc7274f992413b4ae47fcb
f47b0d8https://github.com/getsentry/sentry-javascript/commit/f47b0d89f8e054d8d634e176381f99c65e0dc163
Compare https://github.com/getsentry/sentry-javascript/compare/a1f2f91b1efcf1c838cc7274f992413b4ae47fcb..f47b0d89f8e054d8d634e176381f99c65e0dc163
March 26, 2025 09:58https://github.com/getsentry/sentry-javascript/pull/15820#event-16989371442
https://github.com/AbhiPrasad
AbhiPrasadhttps://github.com/AbhiPrasad
Mar 26, 2025 https://github.com/getsentry/sentry-javascript/pull/15820#pullrequestreview-2717463680
View reviewed changes https://github.com/getsentry/sentry-javascript/pull/15820/files/f47b0d89f8e054d8d634e176381f99c65e0dc163
https://github.com/mydea
mydeahttps://github.com/mydea
ef2f35dhttps://github.com/getsentry/sentry-javascript/commit/ef2f35d5863ce5e581a36aac9ce4557a9ebe370c
Mar 26, 2025https://github.com/getsentry/sentry-javascript/pull/15820#event-16996172154
https://github.com/mydea
mydeahttps://github.com/mydea
March 26, 2025 16:17https://github.com/getsentry/sentry-javascript/pull/15820#event-16996172786
onurtemizkanhttps://github.com/onurtemizkan
Apr 3, 2025 https://github.com/getsentry/sentry-javascript/pull/15820#ref-commit-fcf6fcd
https://github.com/mydea
https://github.com/onurtemizkan
ref(opentelemetry): Avoid sampling work for non-root spans (https://github.com/getsentry/sentry-javascript/commit/fcf6fcd1a3557af491117890f52c2054f7103dc0
#15820https://github.com/getsentry/sentry-javascript/pull/15820
)https://github.com/getsentry/sentry-javascript/commit/fcf6fcd1a3557af491117890f52c2054f7103dc0
fcf6fcdhttps://github.com/getsentry/sentry-javascript/commit/fcf6fcd1a3557af491117890f52c2054f7103dc0
#15725 (comment)https://github.com/getsentry/sentry-javascript/issues/15725#issuecomment-2742022649
mergifyhttps://github.com/apps/mergify
Apr 18, 2025 https://github.com/getsentry/sentry-javascript/pull/15820#ref-commit-1da00cd
https://github.com/marketplace/mergify
[Snyk] Upgrade @sentry/browser from 9.9.0 to 9.10.0 (https://github.com/reisene/HulajDusza-serwis/commit/1da00cd0a28056ffbe5f53cb2b4da373c2491dcf
#341https://github.com/reisene/HulajDusza-serwis/pull/341
)https://github.com/reisene/HulajDusza-serwis/commit/1da00cd0a28056ffbe5f53cb2b4da373c2491dcf
1da00cdhttps://github.com/reisene/HulajDusza-serwis/commit/1da00cd0a28056ffbe5f53cb2b4da373c2491dcf
https://badgen.net/badge/icon/reisene/green?label=https://badgen.net/badge/icon/reisene/green?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)