René's URL Explorer Experiment


Title: Revisit the AsyncLocalStorage onPropagate option · Issue #46374 · nodejs/node · GitHub

Open Graph Title: Revisit the AsyncLocalStorage onPropagate option · Issue #46374 · nodejs/node

X Title: Revisit the AsyncLocalStorage onPropagate option · Issue #46374 · nodejs/node

Description: The onPropagate option was landed as experimental in v19.2... I'd like to propose that we revisit that and take a different approach. https://nodejs.org/dist/latest-v19.x/docs/api/async_context.html#new-asynclocalstorageoptions As backgr...

Open Graph Description: The onPropagate option was landed as experimental in v19.2... I'd like to propose that we revisit that and take a different approach. https://nodejs.org/dist/latest-v19.x/docs/api/async_context.htm...

X Description: The onPropagate option was landed as experimental in v19.2... I'd like to propose that we revisit that and take a different approach. https://nodejs.org/dist/latest-v19.x/docs/api/async_context...

Opengraph URL: https://github.com/nodejs/node/issues/46374

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Revisit the AsyncLocalStorage onPropagate option","articleBody":"The `onPropagate` option was landed as experimental in v19.2... I'd like to propose that we revisit that and take a different approach.\r\n\r\nhttps://nodejs.org/dist/latest-v19.x/docs/api/async_context.html#new-asynclocalstorageoptions\r\n\r\nAs background, `onPropagate` attaches a callback function to the `AsyncLocalStorage` instance that is invoked whenever a new `AsyncResource` is created. This is problematic primarily because it incurs a significant additional performance overhead and assumes a model that is based on the underlying async_hooks API model (which I think there's consensus we want to move away from https://github.com/nodejs/node/issues/46265).\r\n\r\nAlternatively, I'd like to propose a \"tag' model like in the following example:\r\n\r\n```js\r\n// Defines the ALS instance such that a matching tag must be\r\n// passed in to `getStore()` to successfully retrieve the store.\r\nconst als = new AsyncLocalStorage({ tag: 'foo' });\r\n\r\nconsole.log(als.run(123, () => als.getStore('foo')); // 123\r\nconsole.log(als.run(321, () => als.getStore()); // undefined, doesn't match\r\nconsole.log(als.run(321, () => als.getStore('bar')); // undefined, doesn't match\r\n```\r\n\r\nThe `tag` here effectively becomes a component of the storage key. This is much more efficient design that will not incur a significant additional performance penalty.\r\n\r\n/cc @legendecas @littledan @nodejs/async_hooks ","author":{"url":"https://github.com/jasnell","@type":"Person","name":"jasnell"},"datePublished":"2023-01-26T19:09:49Z","url":"https://github.com/nodejs/node/issues/46374"}

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react-reconciler,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@d5750093facf
route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:cdc5fb51-f64e-909c-30ea-7fee46a7421b
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idE20C:284A23:E1780:133BBB:6AED352F
html-safe-nonce1e99ea0172476183c4a8ac69ac6df53c96c05f4655c67f2f386f2db87fa8fee2
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFMjBDOjI4NEEyMzpFMTc4MDoxMzNCQkI6NkFFRDM1MkYiLCJ2aXNpdG9yX2lkIjoiMjA3MDYxMDk1OTMzMDUyMjQxNSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmacccf70fd98cccfb66af5a76fc7927066eb50cc4d4bf5ff6fa9cf4115da94df8b1
hovercard-subject-tagissue:1558632685
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/nodejs/node/46374/issue_layout
twitter:imagehttps://opengraph.githubassets.com/886b917cb9ba6fa4f549b8408e8d9548043945f754285285e297f7a22002f3fc/nodejs/node/issues/46374
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/886b917cb9ba6fa4f549b8408e8d9548043945f754285285e297f7a22002f3fc/nodejs/node/issues/46374
og:image:altThe onPropagate option was landed as experimental in v19.2... I'd like to propose that we revisit that and take a different approach. https://nodejs.org/dist/latest-v19.x/docs/api/async_context.htm...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamejasnell
hostnamegithub.com
expected-hostnamegithub.com
None26c92a9388ddfad3fa88d132b5d5f0b4747030233dcc4e5efb05f1cbae152184
turbo-cache-controlno-preview
go-importgithub.com/nodejs/node git https://github.com/nodejs/node.git
octolytics-dimension-user_id9950313
octolytics-dimension-user_loginnodejs
octolytics-dimension-repository_id27193779
octolytics-dimension-repository_nwonodejs/node
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id27193779
octolytics-dimension-repository_network_root_nwonodejs/node
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
releasec629ad99c254d306375fc8354d04321c2c362236
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/nodejs/node/issues/46374#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fnodejs%2Fnode%2Fissues%2F46374
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%2Fnodejs%2Fnode%2Fissues%2F46374
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%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=nodejs%2Fnode
Reloadhttps://github.com/nodejs/node/issues/46374
Reloadhttps://github.com/nodejs/node/issues/46374
Reloadhttps://github.com/nodejs/node/issues/46374
nodejshttps://github.com/nodejs
nodehttps://github.com/nodejs/node
Codehttps://github.com/nodejs/node
Issues656 (656)https://github.com/nodejs/node/issues
Pull requests665 (665)https://github.com/nodejs/node/pulls
Actionshttps://github.com/nodejs/node/actions
Projectshttps://github.com/nodejs/node/projects
Security and qualityhttps://github.com/nodejs/node/security
Insightshttps://github.com/nodejs/node/pulse
https://github.com/nodejs/node
New issuehttps://github.com/login?return_to=https://github.com/nodejs/node/issues/46374
New issuehttps://github.com/login?return_to=https://github.com/nodejs/node/issues/46374
Revisit the AsyncLocalStorage onPropagate optionhttps://github.com/nodejs/node/issues/46374#top
async_hooksIssues and PRs related to the async hooks subsystem.https://github.com/nodejs/node/issues?q=state%3Aopen%20label%3A%22async_hooks%22
https://github.com/jasnell
jasnellhttps://github.com/jasnell
on Jan 26, 2023https://github.com/nodejs/node/issues/46374#issue-1558632685
https://nodejs.org/dist/latest-v19.x/docs/api/async_context.html#new-asynclocalstorageoptionshttps://nodejs.org/dist/latest-v19.x/docs/api/async_context.html#new-asynclocalstorageoptions
#46265https://github.com/nodejs/node/issues/46265
@legendecashttps://github.com/legendecas
@littledanhttps://github.com/littledan
jasnellhttps://github.com/jasnell
async_hooksIssues and PRs related to the async hooks subsystem.https://github.com/nodejs/node/issues?q=state%3Aopen%20label%3A%22async_hooks%22
on Jan 26, 2023https://github.com/nodejs/node/issues/46374#event-8367090817
https://github.com/Flarna
Flarnahttps://github.com/Flarna
on Jan 26, 2023https://github.com/nodejs/node/issues/46374#issuecomment-1405510522
Herehttps://github.com/nodejs/node/issues/46265#issuecomment-1405174978
https://github.com/jasnell
jasnellhttps://github.com/jasnell
on Jan 26, 2023https://github.com/nodejs/node/issues/46374#issuecomment-1405541774
https://github.com/Flarna
Flarnahttps://github.com/Flarna
on Jan 26, 2023https://github.com/nodejs/node/issues/46374#issuecomment-1405553232
https://github.com/jasnell
jasnellhttps://github.com/jasnell
on Jan 26, 2023https://github.com/nodejs/node/issues/46374#issuecomment-1405593082
@littledanhttps://github.com/littledan
@jridgewellhttps://github.com/jridgewell
@legendecashttps://github.com/legendecas
https://github.com/jridgewell
jridgewellhttps://github.com/jridgewell
on Jan 26, 2023https://github.com/nodejs/node/issues/46374#issuecomment-1405644182
Revisit the AsyncLocalStorage onPropagate option #46374 (comment)https://github.com/nodejs/node/issues/46374#issuecomment-1405541774
https://github.com/Flarna
Flarnahttps://github.com/Flarna
on Jan 26, 2023https://github.com/nodejs/node/issues/46374#issuecomment-1405715412
https://github.com/jridgewell
jridgewellhttps://github.com/jridgewell
on Jan 26, 2023https://github.com/nodejs/node/issues/46374#issuecomment-1405740729
https://github.com/Flarna
Flarnahttps://github.com/Flarna
on Jan 26, 2023https://github.com/nodejs/node/issues/46374#issuecomment-1405755608
https://github.com/jasnell
jasnellhttps://github.com/jasnell
on Jan 27, 2023https://github.com/nodejs/node/issues/46374#issuecomment-1406571502
https://github.com/legendecas
legendecashttps://github.com/legendecas
on Jan 27, 2023https://github.com/nodejs/node/issues/46374#issuecomment-1406916276
@jasnellhttps://github.com/jasnell
@Flarnahttps://github.com/Flarna
https://github.com/jasnell
jasnellhttps://github.com/jasnell
on Jan 27, 2023https://github.com/nodejs/node/issues/46374#issuecomment-1407031084
https://github.com/Flarna
Flarnahttps://github.com/Flarna
on Jan 30, 2023https://github.com/nodejs/node/issues/46374#issuecomment-1409386538
herehttps://github.com/open-telemetry/opentelemetry-specification/issues/3144
jasnellhttps://github.com/jasnell
on Jan 30, 2023https://github.com/nodejs/node/issues/46374#event-8392939722
async_hooks: remove experimental onPropagate optionhttps://github.com/jasnell/node/commit/3c265fa0aaceb9f0ab4a174a451ccb441cd21c29
3c265fahttps://github.com/jasnell/node/commit/3c265fa0aaceb9f0ab4a174a451ccb441cd21c29
https://github.com/jasnell
jasnellhttps://github.com/jasnell
on Jan 30, 2023https://github.com/nodejs/node/issues/46374#issuecomment-1409426185
https://github.com/Flarna
Flarnahttps://github.com/Flarna
on Jan 30, 2023https://github.com/nodejs/node/issues/46374#issuecomment-1409443646
jasnellhttps://github.com/jasnell
on Feb 1, 2023https://github.com/nodejs/node/issues/46374#event-8411745025
async_hooks: remove experimental onPropagate optionhttps://github.com/nodejs/node/commit/dc90810f9ffe4b3d8f3f6bf8608a0cd73b9b4c8f
dc90810https://github.com/nodejs/node/commit/dc90810f9ffe4b3d8f3f6bf8608a0cd73b9b4c8f
https://github.com/Flarna
Flarnahttps://github.com/Flarna
on Feb 1, 2023https://github.com/nodejs/node/issues/46374#issuecomment-1412548707
#46386https://github.com/nodejs/node/pull/46386
Flarnahttps://github.com/Flarna
completedhttps://github.com/nodejs/node/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
on Feb 1, 2023https://github.com/nodejs/node/issues/46374#event-8413502557
MylesBorinshttps://github.com/MylesBorins
on Feb 18, 2023https://github.com/nodejs/node/issues/46374#event-8554138091
async_hooks: remove experimental onPropagate optionhttps://github.com/nodejs/node/commit/05ad792a075046d66d43f1abcf1eefdd467e4061
05ad792https://github.com/nodejs/node/commit/05ad792a075046d66d43f1abcf1eefdd467e4061
danielleadamshttps://github.com/danielleadams
on Apr 11, 2023https://github.com/nodejs/node/issues/46374#event-8968725518
async_hooks: remove experimental onPropagate optionhttps://github.com/nodejs/node/commit/b1bde695749a23ec53913e67026e172b7a979b99
b1bde69https://github.com/nodejs/node/commit/b1bde695749a23ec53913e67026e172b7a979b99
Sign up for freehttps://github.com/signup?return_to=https://github.com/nodejs/node/issues/46374
Sign in to commenthttps://github.com/login?return_to=https://github.com/nodejs/node/issues/46374
async_hooksIssues and PRs related to the async hooks subsystem.https://github.com/nodejs/node/issues?q=state%3Aopen%20label%3A%22async_hooks%22
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

Viewport: width=device-width


URLs of crawlers that visited me.