René's URL Explorer Experiment


Title: feat(core): Add `inheritOrSampleWith` helper to `traceSampler` by lforst · Pull Request #15277 · getsentry/sentry-javascript · GitHub

Open Graph Title: feat(core): Add `inheritOrSampleWith` helper to `traceSampler` by lforst · Pull Request #15277 · getsentry/sentry-javascript

X Title: feat(core): Add `inheritOrSampleWith` helper to `traceSampler` by lforst · Pull Request #15277 · getsentry/sentry-javascript

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

Open Graph Description: We found in getsentry/sentry-docs#12544 that the proposed ux is horrible because nobody would understand what it does, so we're adding a helper that facilitates inheriting a sampling decision t...

X Description: We found in getsentry/sentry-docs#12544 that the proposed ux is horrible because nobody would understand what it does, so we're adding a helper that facilitates inheriting a sampling decisi...

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

X: @github

direct link

Domain: github.com

IPv4 address: 140.82.114.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:c9f07edc-e1a0-a335-6a0e-7c268cdea617
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idA00E:A439B:1713D0D:1E4C98F:6B0411F3
html-safe-nonceaa215b0b7373d41d2145cd31609fd619762ba7e1df9b531cf32413859fe42fde
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBMDBFOkE0MzlCOjE3MTNEMEQ6MUU0Qzk4Rjo2QjA0MTFGMyIsInZpc2l0b3JfaWQiOiI0MzAxODA1ODQzNTA4MzY3ODU5IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmac558e03d4534fb76b536feaa69d945a19e55ab6a36c602ab43e6608b2f9d0f18c
hovercard-subject-tagpull_request:2313251610
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/15277/pull_request_layout
twitter:imagehttps://opengraph.githubassets.com/5dc5bee3d9e4a8f00198e4b179ddf2f4839127e2341dcabed8e9e34a18789dd1/getsentry/sentry-javascript/pull/15277
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/5dc5bee3d9e4a8f00198e4b179ddf2f4839127e2341dcabed8e9e34a18789dd1/getsentry/sentry-javascript/pull/15277
og:image:altWe found in getsentry/sentry-docs#12544 that the proposed ux is horrible because nobody would understand what it does, so we're adding a helper that facilitates inheriting a sampling decision t...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamelforst
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/15277#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fgetsentry%2Fsentry-javascript%2Fpull%2F15277
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%2F15277
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/15277
Reloadhttps://github.com/getsentry/sentry-javascript/pull/15277
Reloadhttps://github.com/getsentry/sentry-javascript/pull/15277
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 requests56 (56)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
lforsthttps://github.com/lforst
develophttps://github.com/getsentry/sentry-javascript/tree/develop
lforst-inhert-or-sample-withhttps://github.com/getsentry/sentry-javascript/tree/lforst-inhert-or-sample-with
Conversationhttps://github.com/getsentry/sentry-javascript/pull/15277
Commits4 (4)https://github.com/getsentry/sentry-javascript/pull/15277/commits
Checkshttps://github.com/getsentry/sentry-javascript/pull/15277/checks
Files changedhttps://github.com/getsentry/sentry-javascript/pull/15277/files
feat(core): Add inheritOrSampleWith helper to traceSamplerhttps://github.com/getsentry/sentry-javascript/pull/15277#top
lforsthttps://github.com/lforst
develophttps://github.com/getsentry/sentry-javascript/tree/develop
lforst-inhert-or-sample-withhttps://github.com/getsentry/sentry-javascript/tree/lforst-inhert-or-sample-with
https://github.com/lforst
lforsthttps://github.com/lforst
Feb 3, 2025https://github.com/getsentry/sentry-javascript/pull/15277#issue-2828091331
getsentry/sentry-docs#12544https://github.com/getsentry/sentry-docs/pull/12544
Please reload this pagehttps://github.com/getsentry/sentry-javascript/pull/15277
feat(core): Add inheritOrSampleWith helper to traceSamplerhttps://github.com/getsentry/sentry-javascript/pull/15277/commits/79f490c104e5dec0f4ab3f906f16c0a8131d5c5d
79f490chttps://github.com/getsentry/sentry-javascript/pull/15277/commits/79f490c104e5dec0f4ab3f906f16c0a8131d5c5d
https://github.com/mydea
mydeahttps://github.com/mydea
Feb 4, 2025 https://github.com/getsentry/sentry-javascript/pull/15277#pullrequestreview-2592272706
View reviewed changes https://github.com/getsentry/sentry-javascript/pull/15277/files/79f490c104e5dec0f4ab3f906f16c0a8131d5c5d
packages/core/src/tracing/sampling.tshttps://github.com/getsentry/sentry-javascript/pull/15277/files/79f490c104e5dec0f4ab3f906f16c0a8131d5c5d#diff-26cda772ffe0eac6c543ad0f0dda2f86ebd19e5f0d9b9ee46a9906f78a1b522b
mydeahttps://github.com/mydea
Feb 4, 2025https://github.com/getsentry/sentry-javascript/pull/15277#discussion_r1940835367
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/getsentry/sentry-javascript/pull/15277
https://github.com/mydea
mydeahttps://github.com/mydea
Feb 4, 2025 https://github.com/getsentry/sentry-javascript/pull/15277#pullrequestreview-2592274462
View reviewed changes https://github.com/getsentry/sentry-javascript/pull/15277/files/79f490c104e5dec0f4ab3f906f16c0a8131d5c5d
packages/core/src/tracing/sampling.tshttps://github.com/getsentry/sentry-javascript/pull/15277/files/79f490c104e5dec0f4ab3f906f16c0a8131d5c5d#diff-26cda772ffe0eac6c543ad0f0dda2f86ebd19e5f0d9b9ee46a9906f78a1b522b
mydeahttps://github.com/mydea
Feb 4, 2025https://github.com/getsentry/sentry-javascript/pull/15277#discussion_r1940836474
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/getsentry/sentry-javascript/pull/15277
review feedback comments and explanationshttps://github.com/getsentry/sentry-javascript/pull/15277/commits/eb7bcc270c369e1b349dd5ece933bc366dcd4a16
eb7bcc2https://github.com/getsentry/sentry-javascript/pull/15277/commits/eb7bcc270c369e1b349dd5ece933bc366dcd4a16
https://github.com/apps/github-actions
github-actionshttps://github.com/apps/github-actions
Feb 4, 2025https://github.com/getsentry/sentry-javascript/pull/15277#issuecomment-2633432868
Please reload this pagehttps://github.com/getsentry/sentry-javascript/pull/15277
View base workflow runhttps://github.com/getsentry/sentry-javascript/actions/runs/13120169231
Please reload this pagehttps://github.com/getsentry/sentry-javascript/pull/15277
February 4, 2025 10:13https://github.com/getsentry/sentry-javascript/pull/15277#commits-pushed-03a2fd6
testshttps://github.com/getsentry/sentry-javascript/pull/15277/commits/03a2fd6a569dac42f877136db79f85daff1036f7
03a2fd6https://github.com/getsentry/sentry-javascript/pull/15277/commits/03a2fd6a569dac42f877136db79f85daff1036f7
testshttps://github.com/getsentry/sentry-javascript/pull/15277/commits/59b68da693fadba87ddd636cbf49bd90407039b5
59b68dahttps://github.com/getsentry/sentry-javascript/pull/15277/commits/59b68da693fadba87ddd636cbf49bd90407039b5
https://github.com/mydea
mydeahttps://github.com/mydea
Feb 4, 2025 https://github.com/getsentry/sentry-javascript/pull/15277#pullrequestreview-2592869365
View reviewed changes https://github.com/getsentry/sentry-javascript/pull/15277/files/59b68da693fadba87ddd636cbf49bd90407039b5
mydeahttps://github.com/mydea
https://github.com/getsentry/sentry-javascript/pull/15277#pullrequestreview-2592869365
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/getsentry/sentry-javascript/pull/15277
https://github.com/lforst
lforsthttps://github.com/lforst
a3e08adhttps://github.com/getsentry/sentry-javascript/commit/a3e08aded2bda13a4db3b6b79492008041b40765
Feb 4, 2025https://github.com/getsentry/sentry-javascript/pull/15277#event-16179875094
https://github.com/lforst
lforsthttps://github.com/lforst
February 4, 2025 14:29https://github.com/getsentry/sentry-javascript/pull/15277#event-16179875958
https://github.com/mydea
mydeahttps://github.com/mydea
Feb 4, 2025https://github.com/getsentry/sentry-javascript/pull/15277#issuecomment-2634260796
Please reload this pagehttps://github.com/getsentry/sentry-javascript/pull/15277
Zen-cronichttps://github.com/Zen-cronic
Feb 5, 2025 https://github.com/getsentry/sentry-javascript/pull/15277#ref-commit-f490c91
https://github.com/Zen-cronic
feat(core): Addhttps://github.com/Zen-cronic/sentry-javascript/commit/f490c9159231c7bc8a000e20e2e01d24fd63dbbe
inheritOrSampleWithhttps://github.com/Zen-cronic/sentry-javascript/commit/f490c9159231c7bc8a000e20e2e01d24fd63dbbe
helper tohttps://github.com/Zen-cronic/sentry-javascript/commit/f490c9159231c7bc8a000e20e2e01d24fd63dbbe
traceSamplerhttps://github.com/Zen-cronic/sentry-javascript/commit/f490c9159231c7bc8a000e20e2e01d24fd63dbbe
(https://github.com/Zen-cronic/sentry-javascript/commit/f490c9159231c7bc8a000e20e2e01d24fd63dbbe
getse…https://github.com/getsentry/sentry-javascript/pull/15277
f490c91https://github.com/Zen-cronic/sentry-javascript/commit/f490c9159231c7bc8a000e20e2e01d24fd63dbbe
…ntry#15277https://github.com/getsentry/sentry-javascript/pull/15277
https://github.com/antonis
antonishttps://github.com/antonis
Feb 19, 2025 https://github.com/getsentry/sentry-javascript/pull/15277#ref-pullrequest-2863097362
chore(deps): Fixes JS SDK v9 breakages getsentry/sentry-react-native#4566 https://github.com/getsentry/sentry-react-native/pull/4566
https://github.com/lucas-zimerman
lucas-zimermanhttps://github.com/lucas-zimerman
Feb 19, 2025 https://github.com/getsentry/sentry-javascript/pull/15277#ref-pullrequest-2863213576
feat: Bump to Sentry Javascript V9 getsentry/sentry-react-native#4568 https://github.com/getsentry/sentry-react-native/pull/4568
https://github.com/dolbin-prime
dolbin-primehttps://github.com/dolbin-prime
Sep 3, 2025 https://github.com/getsentry/sentry-javascript/pull/15277#ref-pullrequest-3380088985
feat(core): Export TracesSamplerSamplingContext type #17523 https://github.com/getsentry/sentry-javascript/pull/17523
Lms24https://github.com/Lms24
Sep 15, 2025 https://github.com/getsentry/sentry-javascript/pull/15277#ref-commit-28d183a
https://github.com/dolbin-prime
feat(core): Exporthttps://github.com/getsentry/sentry-javascript/commit/28d183a52a5b93c3957a40d878f29ca3adc03867
TracesSamplerSamplingContexthttps://github.com/getsentry/sentry-javascript/commit/28d183a52a5b93c3957a40d878f29ca3adc03867
type (https://github.com/getsentry/sentry-javascript/commit/28d183a52a5b93c3957a40d878f29ca3adc03867
#17523https://github.com/getsentry/sentry-javascript/pull/17523
)https://github.com/getsentry/sentry-javascript/commit/28d183a52a5b93c3957a40d878f29ca3adc03867
28d183ahttps://github.com/getsentry/sentry-javascript/commit/28d183a52a5b93c3957a40d878f29ca3adc03867
#15277https://github.com/getsentry/sentry-javascript/pull/15277
https://github.com/getsentry/sentry-javascript/blob/14eba5676149317f2e2b31143a0590256d32c094/packages/core/src/types-hoist/samplingcontext.ts#L47https://github.com/getsentry/sentry-javascript/blob/14eba5676149317f2e2b31143a0590256d32c094/packages/core/src/types-hoist/samplingcontext.ts#L47
https://github.com/getsentry/sentry-javascript/blob/14eba5676149317f2e2b31143a0590256d32c094/packages/core/src/index.ts#L403https://github.com/getsentry/sentry-javascript/blob/14eba5676149317f2e2b31143a0590256d32c094/packages/core/src/index.ts#L403
https://docs.sentry.io/platforms/javascript/guides/react/tracing/configure-sampling/#sampling-function-tracessamplerhttps://docs.sentry.io/platforms/javascript/guides/react/tracing/configure-sampling/#sampling-function-tracessampler
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%2F15277
https://github.com/mydea
mydea https://github.com/mydea
https://github.com/getsentry/sentry-javascript/pull/15277/files/59b68da693fadba87ddd636cbf49bd90407039b5
Please reload this pagehttps://github.com/getsentry/sentry-javascript/pull/15277
Please reload this pagehttps://github.com/getsentry/sentry-javascript/pull/15277
https://github.com/lforst
https://github.com/mydea
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.