René's URL Explorer Experiment


Title: async_hooks: add trackPromises option to createHook() by joyeecheung · Pull Request #61415 · nodejs/node · GitHub

Open Graph Title: async_hooks: add trackPromises option to createHook() by joyeecheung · Pull Request #61415 · nodejs/node

X Title: async_hooks: add trackPromises option to createHook() by joyeecheung · Pull Request #61415 · nodejs/node

Description: This adds a trackPromises option that allows users to completely opt out of the promise hooks that are installed whenever an async hook is added. For those who do not need to track promises, this avoids the excessive hook invocation and the heavy overhead from it. This option was previously already implemented internally to skip the noise from promise hooks when debugging async operations via the V8 inspector. This patch just exposes it. Refs: #57148

Open Graph Description: This adds a trackPromises option that allows users to completely opt out of the promise hooks that are installed whenever an async hook is added. For those who do not need to track promises, this a...

X Description: This adds a trackPromises option that allows users to completely opt out of the promise hooks that are installed whenever an async hook is added. For those who do not need to track promises, this a...

Opengraph URL: https://github.com/nodejs/node/pull/61415

X: @github

direct link

Domain: github.com

route-pattern/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:9a71dddc-137a-df25-8ef1-9d6ed8ac5fb2
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idBA5A:32FDD1:E89C08:147D105:6A4CAE78
html-safe-nonce4d75e4bcd07d5569909f7122d6d472b2ccbf33662743e464e0c9f60a155b07c4
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCQTVBOjMyRkREMTpFODlDMDg6MTQ3RDEwNTo2QTRDQUU3OCIsInZpc2l0b3JfaWQiOiI0MDQ2MzY4MjcyNzk0MDM3ODgwIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmaced7e4f8ef3634d24f54d7d59e096a04ac9d2d9c483b4878a28dd64b879c1034f
hovercard-subject-tagpull_request:3184677737
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///pull_requests/show/files
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/nodejs/node/pull/61415/files
twitter:imagehttps://avatars.githubusercontent.com/u/4299420?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/4299420?s=400&v=4
og:image:altThis adds a trackPromises option that allows users to completely opt out of the promise hooks that are installed whenever an async hook is added. For those who do not need to track promises, this a...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
None3d11bb817438277de2a940854450e83a7d32b6aeb5014e9e6b00a6423900251c
turbo-cache-controlno-preview
diff-viewunified
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 full-width
disable-turbotrue
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
releaseae90d426644ca15e89bacceb72e51f4e9dbf85f7
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/nodejs/node/pull/61415/files#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fnodejs%2Fnode%2Fpull%2F61415%2Ffiles
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub Copilot appDirect agents from issue to mergehttps://github.com/features/ai/github-app
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
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
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
View all resourceshttps://github.com/resources
GitHub SponsorsFund open source developershttps://github.com/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/accelerator
GitHub Starshttps://stars.github.com
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://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/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fnodejs%2Fnode%2Fpull%2F61415%2Ffiles
Sign up https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fpull_requests%2Fshow%2Ffiles&source=header-repo&source_repo=nodejs%2Fnode
Reloadhttps://github.com/nodejs/node/pull/61415/files
Reloadhttps://github.com/nodejs/node/pull/61415/files
Reloadhttps://github.com/nodejs/node/pull/61415/files
Please reload this pagehttps://github.com/nodejs/node/pull/61415/files
nodejs https://github.com/nodejs
nodehttps://github.com/nodejs/node
Please reload this pagehttps://github.com/nodejs/node/pull/61415/files
Notifications https://github.com/login?return_to=%2Fnodejs%2Fnode
Fork 36k https://github.com/login?return_to=%2Fnodejs%2Fnode
Star 118k https://github.com/login?return_to=%2Fnodejs%2Fnode
Code https://github.com/nodejs/node
Issues 1.4k https://github.com/nodejs/node/issues
Pull requests 964 https://github.com/nodejs/node/pulls
Actions https://github.com/nodejs/node/actions
Projects https://github.com/nodejs/node/projects
Security and quality 0 https://github.com/nodejs/node/security
Insights https://github.com/nodejs/node/pulse
Code https://github.com/nodejs/node
Issues https://github.com/nodejs/node/issues
Pull requests https://github.com/nodejs/node/pulls
Actions https://github.com/nodejs/node/actions
Projects https://github.com/nodejs/node/projects
Security and quality https://github.com/nodejs/node/security
Insights https://github.com/nodejs/node/pulse
Sign up for GitHub https://github.com/signup?return_to=%2Fnodejs%2Fnode%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2Fnodejs%2Fnode%2Fissues%2Fnew%2Fchoose
nodejs-github-bothttps://github.com/nodejs-github-bot
nodejs:mainhttps://github.com/nodejs/node/tree/main
joyeecheung:track-promiseshttps://github.com/joyeecheung/node/tree/track-promises
Conversation 12 https://github.com/nodejs/node/pull/61415
Commits 2 https://github.com/nodejs/node/pull/61415/commits
Checks 34 https://github.com/nodejs/node/pull/61415/checks
Files changed https://github.com/nodejs/node/pull/61415/files
Please reload this pagehttps://github.com/nodejs/node/pull/61415/files
async_hooks: add trackPromises option to createHook() https://github.com/nodejs/node/pull/61415/files#top
Show all changes 2 commits https://github.com/nodejs/node/pull/61415/files
2241850 async_hooks: add trackPromises option to createHook() joyeecheung Dec 15, 2025 https://github.com/nodejs/node/pull/61415/commits/22418504124ac7854870b928d0292c7349ad9293
3759c9e fixup! async_hooks: add trackPromises option to createHook() joyeecheung Jan 19, 2026 https://github.com/nodejs/node/pull/61415/commits/3759c9e3b39cd36cad07b080cfe55ad4d2e2ee77
Clear filters https://github.com/nodejs/node/pull/61415/files
Please reload this pagehttps://github.com/nodejs/node/pull/61415/files
Please reload this pagehttps://github.com/nodejs/node/pull/61415/files
async_hooks.md https://github.com/nodejs/node/pull/61415/files#diff-cfacde5f1154593965e866b7f65c8e25e136dd16ee53fa76bfbfbd280d2ee6e3
async_hooks.js https://github.com/nodejs/node/pull/61415/files#diff-7166454dbde8f899bd0d3a2f20997a5a13a48648eaf129c0088bbd493a604595
inspector_async_hook.js https://github.com/nodejs/node/pull/61415/files#diff-50e95e2d75b3eb0ac7a80d9856432291419e99d2c5c606810c81473e5aee3d77
test-track-promises-default.js https://github.com/nodejs/node/pull/61415/files#diff-dd393c29c482cb82d2b1f3c079a87d64f959107c390c131eef909743b48031fa
test-track-promises-false-check.js https://github.com/nodejs/node/pull/61415/files#diff-61c1a88b28295062278398c711b10361791f597b481979530ad8ceb44cf700f2
test-track-promises-false.js https://github.com/nodejs/node/pull/61415/files#diff-d1875e166d8097193e85f7648310a0bacdc8d29540fc139edc7b904521720dd7
test-track-promises-true.js https://github.com/nodejs/node/pull/61415/files#diff-45a896f19b72ff010436d1f13d27833d6ef2454b28c4854a39098445c91923ef
test-track-promises-validation.js https://github.com/nodejs/node/pull/61415/files#diff-4cb889d4a32456d523caf534160bba098b7f8374c0a318da2089582303575df9
type-parser.mjs https://github.com/nodejs/node/pull/61415/files#diff-3b3eb7464eb7cb51177524937fe1f1ce23f2fd3e41f2dc7413f80d4873618bfc
doc/api/async_hooks.mdhttps://github.com/nodejs/node/pull/61415/files#diff-cfacde5f1154593965e866b7f65c8e25e136dd16ee53fa76bfbfbd280d2ee6e3
View file https://github.com/joyeecheung/node/blob/3759c9e3b39cd36cad07b080cfe55ad4d2e2ee77/doc/api/async_hooks.md
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/nodejs/node/pull/61415/{{ revealButtonHref }}
https://github.com/nodejs/node/pull/61415/files#diff-cfacde5f1154593965e866b7f65c8e25e136dd16ee53fa76bfbfbd280d2ee6e3
aduh95https://github.com/aduh95
Feb 2, 2026https://github.com/nodejs/node/pull/61415/files#r2753485292
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/nodejs/node/pull/61415/files
abelinagomez274-codehttps://github.com/abelinagomez274-code
Feb 3, 2026https://github.com/nodejs/node/pull/61415/files#r2760511821
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
https://github.com/nodejs/node/pull/61415/files
Please reload this pagehttps://github.com/nodejs/node/pull/61415/files
https://github.com/nodejs/node/pull/61415/files#diff-cfacde5f1154593965e866b7f65c8e25e136dd16ee53fa76bfbfbd280d2ee6e3
https://github.com/nodejs/node/pull/61415/files#diff-cfacde5f1154593965e866b7f65c8e25e136dd16ee53fa76bfbfbd280d2ee6e3
https://github.com/nodejs/node/pull/61415/files#diff-cfacde5f1154593965e866b7f65c8e25e136dd16ee53fa76bfbfbd280d2ee6e3
https://github.com/nodejs/node/pull/61415/files#diff-cfacde5f1154593965e866b7f65c8e25e136dd16ee53fa76bfbfbd280d2ee6e3
Flarnahttps://github.com/Flarna
Jan 18, 2026https://github.com/nodejs/node/pull/61415/files#r2702611870
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/nodejs/node/pull/61415/files
joyeecheunghttps://github.com/joyeecheung
Jan 19, 2026https://github.com/nodejs/node/pull/61415/files#r2705257431
Please reload this pagehttps://github.com/nodejs/node/pull/61415/files
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/nodejs/node/pull/61415/files
https://github.com/nodejs/node/pull/61415/files#diff-cfacde5f1154593965e866b7f65c8e25e136dd16ee53fa76bfbfbd280d2ee6e3
https://github.com/nodejs/node/pull/61415/files#diff-cfacde5f1154593965e866b7f65c8e25e136dd16ee53fa76bfbfbd280d2ee6e3
lib/async_hooks.jshttps://github.com/nodejs/node/pull/61415/files#diff-7166454dbde8f899bd0d3a2f20997a5a13a48648eaf129c0088bbd493a604595
View file https://github.com/joyeecheung/node/blob/3759c9e3b39cd36cad07b080cfe55ad4d2e2ee77/lib/async_hooks.js
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/nodejs/node/pull/61415/{{ revealButtonHref }}
https://github.com/nodejs/node/pull/61415/files#diff-7166454dbde8f899bd0d3a2f20997a5a13a48648eaf129c0088bbd493a604595
https://github.com/nodejs/node/pull/61415/files#diff-7166454dbde8f899bd0d3a2f20997a5a13a48648eaf129c0088bbd493a604595
https://github.com/nodejs/node/pull/61415/files#diff-7166454dbde8f899bd0d3a2f20997a5a13a48648eaf129c0088bbd493a604595
https://github.com/nodejs/node/pull/61415/files#diff-7166454dbde8f899bd0d3a2f20997a5a13a48648eaf129c0088bbd493a604595
https://github.com/nodejs/node/pull/61415/files#diff-7166454dbde8f899bd0d3a2f20997a5a13a48648eaf129c0088bbd493a604595
lib/internal/inspector_async_hook.jshttps://github.com/nodejs/node/pull/61415/files#diff-50e95e2d75b3eb0ac7a80d9856432291419e99d2c5c606810c81473e5aee3d77
View file https://github.com/joyeecheung/node/blob/3759c9e3b39cd36cad07b080cfe55ad4d2e2ee77/lib/internal/inspector_async_hook.js
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/nodejs/node/pull/61415/{{ revealButtonHref }}
https://github.com/nodejs/node/pull/61415/files#diff-50e95e2d75b3eb0ac7a80d9856432291419e99d2c5c606810c81473e5aee3d77
https://github.com/nodejs/node/pull/61415/files#diff-50e95e2d75b3eb0ac7a80d9856432291419e99d2c5c606810c81473e5aee3d77
https://github.com/nodejs/node/pull/61415/files#diff-50e95e2d75b3eb0ac7a80d9856432291419e99d2c5c606810c81473e5aee3d77
test/async-hooks/test-track-promises-default.jshttps://github.com/nodejs/node/pull/61415/files#diff-dd393c29c482cb82d2b1f3c079a87d64f959107c390c131eef909743b48031fa
View file https://github.com/joyeecheung/node/blob/3759c9e3b39cd36cad07b080cfe55ad4d2e2ee77/test/async-hooks/test-track-promises-default.js
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/nodejs/node/pull/61415/{{ revealButtonHref }}
test/async-hooks/test-track-promises-false-check.jshttps://github.com/nodejs/node/pull/61415/files#diff-61c1a88b28295062278398c711b10361791f597b481979530ad8ceb44cf700f2
View file https://github.com/joyeecheung/node/blob/3759c9e3b39cd36cad07b080cfe55ad4d2e2ee77/test/async-hooks/test-track-promises-false-check.js
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/nodejs/node/pull/61415/{{ revealButtonHref }}
test/async-hooks/test-track-promises-false.jshttps://github.com/nodejs/node/pull/61415/files#diff-d1875e166d8097193e85f7648310a0bacdc8d29540fc139edc7b904521720dd7
View file https://github.com/joyeecheung/node/blob/3759c9e3b39cd36cad07b080cfe55ad4d2e2ee77/test/async-hooks/test-track-promises-false.js
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/nodejs/node/pull/61415/{{ revealButtonHref }}
test/async-hooks/test-track-promises-true.jshttps://github.com/nodejs/node/pull/61415/files#diff-45a896f19b72ff010436d1f13d27833d6ef2454b28c4854a39098445c91923ef
View file https://github.com/joyeecheung/node/blob/3759c9e3b39cd36cad07b080cfe55ad4d2e2ee77/test/async-hooks/test-track-promises-true.js
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/nodejs/node/pull/61415/{{ revealButtonHref }}
test/async-hooks/test-track-promises-validation.jshttps://github.com/nodejs/node/pull/61415/files#diff-4cb889d4a32456d523caf534160bba098b7f8374c0a318da2089582303575df9
View file https://github.com/joyeecheung/node/blob/3759c9e3b39cd36cad07b080cfe55ad4d2e2ee77/test/async-hooks/test-track-promises-validation.js
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/nodejs/node/pull/61415/{{ revealButtonHref }}
tools/doc/type-parser.mjshttps://github.com/nodejs/node/pull/61415/files#diff-3b3eb7464eb7cb51177524937fe1f1ce23f2fd3e41f2dc7413f80d4873618bfc
View file https://github.com/joyeecheung/node/blob/3759c9e3b39cd36cad07b080cfe55ad4d2e2ee77/tools/doc/type-parser.mjs
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/nodejs/node/pull/61415/{{ revealButtonHref }}
https://github.com/nodejs/node/pull/61415/files#diff-3b3eb7464eb7cb51177524937fe1f1ce23f2fd3e41f2dc7413f80d4873618bfc
https://github.com/nodejs/node/pull/61415/files#diff-3b3eb7464eb7cb51177524937fe1f1ce23f2fd3e41f2dc7413f80d4873618bfc
Please reload this pagehttps://github.com/nodejs/node/pull/61415/files
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.