René's URL Explorer Experiment


Title: feat(core): Deprecate `Transaction.getDynamicSamplingContext` in favour of `getDynamicSamplingContextFromSpan` by Lms24 · Pull Request #10094 · getsentry/sentry-javascript · GitHub

Open Graph Title: feat(core): Deprecate `Transaction.getDynamicSamplingContext` in favour of `getDynamicSamplingContextFromSpan` by Lms24 · Pull Request #10094 · getsentry/sentry-javascript

X Title: feat(core): Deprecate `Transaction.getDynamicSamplingContext` in favour of `getDynamicSamplingContextFromSpan` by Lms24 · Pull Request #10094 · 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 deprecates Transaction.getDynamicSamplingContext and introduces its direct replacement, a top-level utility function. Note that IMO this only is an intermediate step we should take to rewor...

X Description: This PR deprecates Transaction.getDynamicSamplingContext and introduces its direct replacement, a top-level utility function. Note that IMO this only is an intermediate step we should take to rewor...

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

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:d6a85698-4f3f-0da1-6def-f0ae1b50b4b7
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idB830:8414A:F93ACC:15CB669:6B044819
html-safe-nonce9794b390c6e491d189ef786b44c9e25f14e70756cb6b973bfcaa656360b720ea
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCODMwOjg0MTRBOkY5M0FDQzoxNUNCNjY5OjZCMDQ0ODE5IiwidmlzaXRvcl9pZCI6IjQ4ODU1Mjg3ODQyMTM5MTk3NjkiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmacbfb264479143009a68800b1697b5cc5012affce5e08b54c273ed64cf04fe0bfc
hovercard-subject-tagpull_request:1668820578
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/10094/pull_request_layout
twitter:imagehttps://opengraph.githubassets.com/63553011c305eed60684c4a94cde9dd722cead7d601c00b3792a2d91906c3886/getsentry/sentry-javascript/pull/10094
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/63553011c305eed60684c4a94cde9dd722cead7d601c00b3792a2d91906c3886/getsentry/sentry-javascript/pull/10094
og:image:altThis PR deprecates Transaction.getDynamicSamplingContext and introduces its direct replacement, a top-level utility function. Note that IMO this only is an intermediate step we should take to rewor...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameLms24
hostnamegithub.com
expected-hostnamegithub.com
Noned4495c3631faba668036f176d1f5946901c5172efd73a6edb984029e7d4f8e46
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
release9ac4337fb7c6a5846cdfdb1a04f154d3c33ebc77
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-namepull-requests

Links:

Skip to contenthttps://github.com/getsentry/sentry-javascript/pull/10094#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fgetsentry%2Fsentry-javascript%2Fpull%2F10094
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%2F10094
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/10094
Reloadhttps://github.com/getsentry/sentry-javascript/pull/10094
Reloadhttps://github.com/getsentry/sentry-javascript/pull/10094
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
Lms24https://github.com/Lms24
develophttps://github.com/getsentry/sentry-javascript/tree/develop
lms/feat-code-add-getDynamicSamplingFromSpanhttps://github.com/getsentry/sentry-javascript/tree/lms/feat-code-add-getDynamicSamplingFromSpan
Conversationhttps://github.com/getsentry/sentry-javascript/pull/10094
Commits10 (10)https://github.com/getsentry/sentry-javascript/pull/10094/commits
Checkshttps://github.com/getsentry/sentry-javascript/pull/10094/checks
Files changedhttps://github.com/getsentry/sentry-javascript/pull/10094/files
feat(core): Deprecate Transaction.getDynamicSamplingContext in favour of getDynamicSamplingContextFromSpanhttps://github.com/getsentry/sentry-javascript/pull/10094#top
Lms24https://github.com/Lms24
develophttps://github.com/getsentry/sentry-javascript/tree/develop
lms/feat-code-add-getDynamicSamplingFromSpanhttps://github.com/getsentry/sentry-javascript/tree/lms/feat-code-add-getDynamicSamplingFromSpan
https://github.com/Lms24
Lms24https://github.com/Lms24
Jan 8, 2024https://github.com/getsentry/sentry-javascript/pull/10094#issue-2070330921
Please reload this pagehttps://github.com/getsentry/sentry-javascript/pull/10094
#10095https://github.com/getsentry/sentry-javascript/issues/10095
Please reload this pagehttps://github.com/getsentry/sentry-javascript/pull/10094
https://github.com/apps/github-actions
github-actionshttps://github.com/apps/github-actions
Jan 8, 2024https://github.com/getsentry/sentry-javascript/pull/10094#issuecomment-1880899653
Please reload this pagehttps://github.com/getsentry/sentry-javascript/pull/10094
Please reload this pagehttps://github.com/getsentry/sentry-javascript/pull/10094
https://github.com/mydea
mydeahttps://github.com/mydea
Jan 8, 2024 https://github.com/getsentry/sentry-javascript/pull/10094#pullrequestreview-1808999421
View reviewed changes https://github.com/getsentry/sentry-javascript/pull/10094/files
packages/core/src/server-runtime-client.tshttps://github.com/getsentry/sentry-javascript/pull/10094/files#diff-32e2bc943417e13397a659945f050f7b239bbea2d4129511a448cdc16815bb80
Please reload this pagehttps://github.com/getsentry/sentry-javascript/pull/10094
https://github.com/mydea
mydeahttps://github.com/mydea
Jan 8, 2024 https://github.com/getsentry/sentry-javascript/pull/10094#pullrequestreview-1809000177
View reviewed changes https://github.com/getsentry/sentry-javascript/pull/10094/files
packages/core/src/utils/applyScopeDataToEvent.tshttps://github.com/getsentry/sentry-javascript/pull/10094/files#diff-4ec2225d0d71f42adc51112746271a010d80a13149ad6f881c9c75568166489d
Please reload this pagehttps://github.com/getsentry/sentry-javascript/pull/10094
https://github.com/mydea
mydeahttps://github.com/mydea
Jan 8, 2024 https://github.com/getsentry/sentry-javascript/pull/10094#pullrequestreview-1809001065
View reviewed changes https://github.com/getsentry/sentry-javascript/pull/10094/files
packages/node/src/integrations/http.tshttps://github.com/getsentry/sentry-javascript/pull/10094/files#diff-227497e3033a6abac60b38b42540388e46479af2a7d006b9ae9713c7473f53fe
Please reload this pagehttps://github.com/getsentry/sentry-javascript/pull/10094
https://github.com/Lms24
Lms24https://github.com/Lms24
Jan 8, 2024 https://github.com/getsentry/sentry-javascript/pull/10094#ref-issue-2070375849
Consolidate propagation and dynamic sampling contexts on Scope #10095 https://github.com/getsentry/sentry-javascript/issues/10095
https://github.com/Lms24
Lms24https://github.com/Lms24
force-pushedhttps://github.com/getsentry/sentry-javascript/compare/9f1b60720c9d98a5daf3bf0e4e06200c4a69deef..5a5cd5cb6ca1fde5177f0ae34708d90134f04969
9f1b607https://github.com/getsentry/sentry-javascript/commit/9f1b60720c9d98a5daf3bf0e4e06200c4a69deef
5a5cd5chttps://github.com/getsentry/sentry-javascript/commit/5a5cd5cb6ca1fde5177f0ae34708d90134f04969
Compare https://github.com/getsentry/sentry-javascript/compare/9f1b60720c9d98a5daf3bf0e4e06200c4a69deef..5a5cd5cb6ca1fde5177f0ae34708d90134f04969
January 8, 2024 16:52https://github.com/getsentry/sentry-javascript/pull/10094#event-11420197410
https://github.com/Lms24
Lms24https://github.com/Lms24
Jan 8, 2024 https://github.com/getsentry/sentry-javascript/pull/10094#ref-pullrequest-2070402102
feat(core): Deprecate transaction metadata in favor of attributes #10097 https://github.com/getsentry/sentry-javascript/pull/10097
https://github.com/Lms24
Lms24https://github.com/Lms24
force-pushedhttps://github.com/getsentry/sentry-javascript/compare/fd8df14064df58f5f66a57444d2efdbff4ab6841..342763cd97b1ee5792457c7202deb3b984fbc4c1
fd8df14https://github.com/getsentry/sentry-javascript/commit/fd8df14064df58f5f66a57444d2efdbff4ab6841
342763chttps://github.com/getsentry/sentry-javascript/commit/342763cd97b1ee5792457c7202deb3b984fbc4c1
Compare https://github.com/getsentry/sentry-javascript/compare/fd8df14064df58f5f66a57444d2efdbff4ab6841..342763cd97b1ee5792457c7202deb3b984fbc4c1
January 9, 2024 11:27https://github.com/getsentry/sentry-javascript/pull/10094#event-11429091935
https://github.com/Lms24
Lms24https://github.com/Lms24
Jan 9, 2024https://github.com/getsentry/sentry-javascript/pull/10094#event-11429094190
https://github.com/Lms24
Lms24https://github.com/Lms24
January 9, 2024 11:27https://github.com/getsentry/sentry-javascript/pull/10094#event-11429094729
https://github.com/Lms24
Lms24https://github.com/Lms24
lforsthttps://github.com/lforst
mydeahttps://github.com/mydea
January 9, 2024 11:27https://github.com/getsentry/sentry-javascript/pull/10094#event-11429095727
https://github.com/mydea
mydeahttps://github.com/mydea
Jan 9, 2024 https://github.com/getsentry/sentry-javascript/pull/10094#pullrequestreview-1811134692
View reviewed changes https://github.com/getsentry/sentry-javascript/pull/10094/files
Lms24https://github.com/Lms24
January 9, 2024 14:24https://github.com/getsentry/sentry-javascript/pull/10094#commits-pushed-45e844d
https://github.com/Lms24
feat(core): Deprecate Transaction.getDynamicSamplingContext in favo…https://github.com/getsentry/sentry-javascript/pull/10094/commits/45e844d1044d998dd59ef6b2e91f56cd9d0b0321
45e844dhttps://github.com/getsentry/sentry-javascript/pull/10094/commits/45e844d1044d998dd59ef6b2e91f56cd9d0b0321
https://github.com/Lms24
fix v7 frozenDSC obtain mechanismhttps://github.com/getsentry/sentry-javascript/pull/10094/commits/5788a5499ad4916caf15e49618311f2943d5f293
5788a54https://github.com/getsentry/sentry-javascript/pull/10094/commits/5788a5499ad4916caf15e49618311f2943d5f293
https://github.com/Lms24
fix tests, add testshttps://github.com/getsentry/sentry-javascript/pull/10094/commits/3e156bac36635ce489d473adcfe29f9d130be1bb
3e156bahttps://github.com/getsentry/sentry-javascript/pull/10094/commits/3e156bac36635ce489d473adcfe29f9d130be1bb
https://github.com/Lms24
apply new APIs (spanIsSampled, spanToJson) after rebasehttps://github.com/getsentry/sentry-javascript/pull/10094/commits/c9c1592fef134096e211d2e9bb99eb4f0f340f2d
c9c1592https://github.com/getsentry/sentry-javascript/pull/10094/commits/c9c1592fef134096e211d2e9bb99eb4f0f340f2d
https://github.com/Lms24
fix tracing testshttps://github.com/getsentry/sentry-javascript/pull/10094/commits/14f2cff9d99f701be0567ed05b097a6b89f29fe8
14f2cffhttps://github.com/getsentry/sentry-javascript/pull/10094/commits/14f2cff9d99f701be0567ed05b097a6b89f29fe8
https://github.com/Lms24
use txn.attributes instead of txn.metadata.sourcehttps://github.com/getsentry/sentry-javascript/pull/10094/commits/9c76fc9831b162c75dfa99f5e9c087d19e5cd93c
9c76fc9https://github.com/getsentry/sentry-javascript/pull/10094/commits/9c76fc9831b162c75dfa99f5e9c087d19e5cd93c
https://github.com/Lms24
sample rate attribute && remove emithttps://github.com/getsentry/sentry-javascript/pull/10094/commits/5b5dcea6a905cbb492ece9356bb9ec709deaacb4
5b5dceahttps://github.com/getsentry/sentry-javascript/pull/10094/commits/5b5dcea6a905cbb492ece9356bb9ec709deaacb4
https://github.com/Lms24
Lms24https://github.com/Lms24
force-pushedhttps://github.com/getsentry/sentry-javascript/compare/2319af51b61476952cac6e3b3ce254a1034cf5f9..5b5dcea6a905cbb492ece9356bb9ec709deaacb4
2319af5https://github.com/getsentry/sentry-javascript/commit/2319af51b61476952cac6e3b3ce254a1034cf5f9
5b5dceahttps://github.com/getsentry/sentry-javascript/commit/5b5dcea6a905cbb492ece9356bb9ec709deaacb4
Compare https://github.com/getsentry/sentry-javascript/compare/2319af51b61476952cac6e3b3ce254a1034cf5f9..5b5dcea6a905cbb492ece9356bb9ec709deaacb4
January 9, 2024 13:24https://github.com/getsentry/sentry-javascript/pull/10094#event-11430329195
https://github.com/Lms24
Lms24https://github.com/Lms24
Jan 9, 2024 https://github.com/getsentry/sentry-javascript/pull/10094#ref-issue-2072406836
Add global Sentry.getDynamicSamplingContext function #10119 https://github.com/getsentry/sentry-javascript/issues/10119
https://github.com/Lms24
fix tests once againhttps://github.com/getsentry/sentry-javascript/pull/10094/commits/be3dbbe54e7b7b142a3257c8d16e7de5b4ab8534
be3dbbehttps://github.com/getsentry/sentry-javascript/pull/10094/commits/be3dbbe54e7b7b142a3257c8d16e7de5b4ab8534
https://github.com/mydea
mydeahttps://github.com/mydea
Jan 10, 2024 https://github.com/getsentry/sentry-javascript/pull/10094#pullrequestreview-1812611799
View reviewed changes https://github.com/getsentry/sentry-javascript/pull/10094/files/be3dbbe54e7b7b142a3257c8d16e7de5b4ab8534
https://github.com/lforst
lforsthttps://github.com/lforst
Jan 10, 2024 https://github.com/getsentry/sentry-javascript/pull/10094#pullrequestreview-1812814019
View reviewed changes https://github.com/getsentry/sentry-javascript/pull/10094/files/be3dbbe54e7b7b142a3257c8d16e7de5b4ab8534
Lms24https://github.com/Lms24
January 10, 2024 11:04https://github.com/getsentry/sentry-javascript/pull/10094#commits-pushed-74b9799
https://github.com/Lms24
use txn.metadata instead of txn.attributes :(https://github.com/getsentry/sentry-javascript/pull/10094/commits/74b9799ed9ee1dc1febdbb7710c6bb21a4e9f6a2
74b9799https://github.com/getsentry/sentry-javascript/pull/10094/commits/74b9799ed9ee1dc1febdbb7710c6bb21a4e9f6a2
https://github.com/Lms24
linthttps://github.com/getsentry/sentry-javascript/pull/10094/commits/6962539490ab38e09a7e1fae91ec1ce39d0a7246
6962539https://github.com/getsentry/sentry-javascript/pull/10094/commits/6962539490ab38e09a7e1fae91ec1ce39d0a7246
https://github.com/Lms24
Lms24https://github.com/Lms24
6faec42https://github.com/getsentry/sentry-javascript/commit/6faec4238c248e4295d0e827c355f834ef041966
Jan 10, 2024https://github.com/getsentry/sentry-javascript/pull/10094#event-11441649390
https://github.com/Lms24
Lms24https://github.com/Lms24
January 10, 2024 10:55https://github.com/getsentry/sentry-javascript/pull/10094#event-11441649611
https://github.com/edzis
edzishttps://github.com/edzis
Feb 2, 2024 https://github.com/getsentry/sentry-javascript/pull/10094#ref-issue-1573510162
uncaughtException: parentSpan.transaction.getDynamicSamplingContext is not a function after upgrading to latest version #7073 https://github.com/getsentry/sentry-javascript/issues/7073
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%2F10094
https://github.com/mydea
mydea https://github.com/mydea
https://github.com/getsentry/sentry-javascript/pull/10094/files/be3dbbe54e7b7b142a3257c8d16e7de5b4ab8534
https://github.com/lforst
lforst https://github.com/lforst
https://github.com/getsentry/sentry-javascript/pull/10094/files/be3dbbe54e7b7b142a3257c8d16e7de5b4ab8534
Please reload this pagehttps://github.com/getsentry/sentry-javascript/pull/10094
https://github.com/Lms24
Lms24 https://github.com/Lms24
Please reload this pagehttps://github.com/getsentry/sentry-javascript/pull/10094
https://github.com/Lms24
https://github.com/mydea
https://github.com/lforst
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.