René's URL Explorer Experiment


Title: Expose the "enhanced" stack trace from uncaught exceptions to the `uncaughtException` and `uncaughtExceptionMonitor` handlers on `process` · Issue #55838 · nodejs/node · GitHub

Open Graph Title: Expose the "enhanced" stack trace from uncaught exceptions to the `uncaughtException` and `uncaughtExceptionMonitor` handlers on `process` · Issue #55838 · nodejs/node

X Title: Expose the "enhanced" stack trace from uncaught exceptions to the `uncaughtException` and `uncaughtExceptionMonitor` handlers on `process` · Issue #55838 · nodejs/node

Description: What is the problem this feature will solve? In my app, I have a logging system which writes entries to files and/or the network in a machine-parsable form. I use the uncaughtException handler on process in order to get uncaught exceptio...

Open Graph Description: What is the problem this feature will solve? In my app, I have a logging system which writes entries to files and/or the network in a machine-parsable form. I use the uncaughtException handler on p...

X Description: What is the problem this feature will solve? In my app, I have a logging system which writes entries to files and/or the network in a machine-parsable form. I use the uncaughtException handler on p...

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

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Expose the \"enhanced\" stack trace from uncaught exceptions to the `uncaughtException` and `uncaughtExceptionMonitor` handlers on `process`","articleBody":"### What is the problem this feature will solve?\r\n\r\nIn my app, I have a logging system which writes entries to files and/or the network in a machine-parsable form. I use the `uncaughtException` handler on `process` in order to get uncaught exceptions written out to this logging system. I noticed that if there's no `uncaughtException` handler, Node will print out an extra stack trace to the console indicating the call site of the `\u003cemitter>.emit('error', ...)` call which emitted the ultimately-uncaught exception. However, it seems like there's no programmatic way for me to get that extra trace in my own handler.\r\n\r\nThis feature will solve the problem of being able to programmatically extract this extra — and quite useful! — information in a way that works well with a system that eschews the console.\r\n\r\n\r\n### What is the feature you are proposing to solve the problem?\r\n\r\nI don't know what tactic would work best within the larger Node ecosystem, but as a straw-man suggestion:\r\n\r\nAdd a third argument to the `uncaughtException` and `uncaughtExceptionMonitor` callbacks when an \"enhanced\" error is available, containing information corresponding to the site and target of the `emit()` call. It could, for example, be a plain object containing an `Error` representing the call site and an object reference to the emitter itself. But if that's too dangerous, it might instead have strings representing that info. For example (in the former case), the following would nearly duplicate what the current default `uncaughtException` handler prints out to the console:\r\n\r\n```js\r\nprocess.on('uncaughtException', (err, origin, emitInfo) => {\r\n  console.log('%s', err.stack);\r\n  if (emitInfo) {\r\n    const { emitter, emitSite } = emitInfo;\r\n    console.log(`Emitted 'error' event of ${emitter.constructor.name} instance at:\\n%s`,\r\n      emitSite.stack);\r\n  }\r\n});\r\n```\r\n\r\n\r\n### What alternatives have you considered?\r\n\r\nHaving a separate process to scrape console output to find things that look like uncaught exceptions, so I can push them into the structured logging system. (Oof.)","author":{"url":"https://github.com/danfuzz","@type":"Person","name":"danfuzz"},"datePublished":"2024-11-13T18:37:12Z","url":"https://github.com/nodejs/node/issues/55838"}

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:4683a675-a811-1b0e-c6af-fb9d6e7f9378
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-id9046:1C7D35:AEB864:E879A6:6AED3502
html-safe-nonce3635cb896f16b98b074f1a49008404caa2fa7f30073dde5d48b6e19d7bfe7000
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5MDQ2OjFDN0QzNTpBRUI4NjQ6RTg3OUE2OjZBRUQzNTAyIiwidmlzaXRvcl9pZCI6IjY2NTU3NjkyNzExNjc5NTYyMjYiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac743891251056ce67e3fb9a630beb93b757a931a027142712b582bc4073c559b6
hovercard-subject-tagissue:2656412202
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/55838/issue_layout
twitter:imagehttps://opengraph.githubassets.com/24c326e2a460830ead21ebdcda011a67c4378133c175e79815fa9f73f34cc93e/nodejs/node/issues/55838
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/24c326e2a460830ead21ebdcda011a67c4378133c175e79815fa9f73f34cc93e/nodejs/node/issues/55838
og:image:altWhat is the problem this feature will solve? In my app, I have a logging system which writes entries to files and/or the network in a machine-parsable form. I use the uncaughtException handler on p...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamedanfuzz
hostnamegithub.com
expected-hostnamegithub.com
Nonee51d0b7b5ab34b1688c05b54c3ed17b8658b2fa9bca973a9c740683ccb12cf4a
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
release59ebb7b901cc154ecc179a44f266fcf69f343b30
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/nodejs/node/issues/55838#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fnodejs%2Fnode%2Fissues%2F55838
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%2F55838
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/55838
Reloadhttps://github.com/nodejs/node/issues/55838
Reloadhttps://github.com/nodejs/node/issues/55838
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/55838
New issuehttps://github.com/login?return_to=https://github.com/nodejs/node/issues/55838
#65580https://github.com/nodejs/node/pull/65580
Expose the "enhanced" stack trace from uncaught exceptions to the uncaughtException and uncaughtExceptionMonitor handlers on processhttps://github.com/nodejs/node/issues/55838#top
#65580https://github.com/nodejs/node/pull/65580
eventsIssues and PRs related to EventEmitter and the events module.https://github.com/nodejs/node/issues?q=state%3Aopen%20label%3A%22events%22
feature requestIssues requesting new Node.js features.https://github.com/nodejs/node/issues?q=state%3Aopen%20label%3A%22feature%20request%22
https://github.com/danfuzz
danfuzzhttps://github.com/danfuzz
on Nov 13, 2024https://github.com/nodejs/node/issues/55838#issue-2656412202
danfuzzhttps://github.com/danfuzz
feature requestIssues requesting new Node.js features.https://github.com/nodejs/node/issues?q=state%3Aopen%20label%3A%22feature%20request%22
on Nov 13, 2024https://github.com/nodejs/node/issues/55838#event-15287813154
github-project-automationhttps://github.com/apps/github-project-automation
Node.js feature requestshttps://github.com/orgs/nodejs/projects/4
on Nov 13, 2024https://github.com/nodejs/node/issues/55838
github-project-automationhttps://github.com/apps/github-project-automation
Node.js feature requestshttps://github.com/orgs/nodejs/projects/4
on Nov 13, 2024https://github.com/nodejs/node/issues/55838#event-15287814424
https://github.com/danfuzz
danfuzzhttps://github.com/danfuzz
on Nov 13, 2024https://github.com/nodejs/node/issues/55838#issuecomment-2474444925
https://github.com/nodejs/node/blob/main/lib/events.js#L422https://github.com/nodejs/node/blob/main/lib/events.js#L422
avivkellerhttps://github.com/avivkeller
eventsIssues and PRs related to EventEmitter and the events module.https://github.com/nodejs/node/issues?q=state%3Aopen%20label%3A%22events%22
on Nov 13, 2024https://github.com/nodejs/node/issues/55838#event-15288056256
https://github.com/apps/github-actions
github-actionshttps://github.com/apps/github-actions
on May 13, 2025https://github.com/nodejs/node/issues/55838#issuecomment-2874759470
GitHub Actionshttps://help.github.com/en/actions
never-stalehttps://github.com/nodejs/node/labels/never-stale
feature request management documenthttps://github.com/nodejs/node/blob/HEAD/doc/contributing/feature-request-management.md
github-actionshttps://github.com/apps/github-actions
staleIssues and PRs marked stale due to inactivity and scheduled for automatic closure.https://github.com/nodejs/node/issues?q=state%3Aopen%20label%3A%22stale%22
on May 13, 2025https://github.com/nodejs/node/issues/55838#event-17626613358
https://github.com/danfuzz
danfuzzhttps://github.com/danfuzz
on May 13, 2025https://github.com/nodejs/node/issues/55838#issuecomment-2877689357
github-actionshttps://github.com/apps/github-actions
staleIssues and PRs marked stale due to inactivity and scheduled for automatic closure.https://github.com/nodejs/node/issues?q=state%3Aopen%20label%3A%22stale%22
on May 14, 2025https://github.com/nodejs/node/issues/55838#event-17644764639
https://github.com/apps/github-actions
github-actionshttps://github.com/apps/github-actions
on Nov 10, 2025https://github.com/nodejs/node/issues/55838#issuecomment-3509088886
GitHub Actionshttps://help.github.com/en/actions
never-stalehttps://github.com/nodejs/node/labels/never-stale
feature request management documenthttps://github.com/nodejs/node/blob/HEAD/doc/contributing/feature-request-management.md
github-actionshttps://github.com/apps/github-actions
staleIssues and PRs marked stale due to inactivity and scheduled for automatic closure.https://github.com/nodejs/node/issues?q=state%3Aopen%20label%3A%22stale%22
on Nov 10, 2025https://github.com/nodejs/node/issues/55838#event-20823065281
https://github.com/danfuzz
danfuzzhttps://github.com/danfuzz
on Nov 10, 2025https://github.com/nodejs/node/issues/55838#issuecomment-3512960011
github-actionshttps://github.com/apps/github-actions
staleIssues and PRs marked stale due to inactivity and scheduled for automatic closure.https://github.com/nodejs/node/issues?q=state%3Aopen%20label%3A%22stale%22
on Nov 11, 2025https://github.com/nodejs/node/issues/55838#event-20850815896
https://github.com/apps/github-actions
github-actionshttps://github.com/apps/github-actions
on Jun 9, 2026https://github.com/nodejs/node/issues/55838#issuecomment-4655228413
GitHub Actionshttps://help.github.com/en/actions
github-actionshttps://github.com/apps/github-actions
staleIssues and PRs marked stale due to inactivity and scheduled for automatic closure.https://github.com/nodejs/node/issues?q=state%3Aopen%20label%3A%22stale%22
on Jun 9, 2026https://github.com/nodejs/node/issues/55838#event-26499686578
https://github.com/danfuzz
danfuzzhttps://github.com/danfuzz
on Jun 10, 2026https://github.com/nodejs/node/issues/55838#issuecomment-4671704122
github-actionshttps://github.com/apps/github-actions
staleIssues and PRs marked stale due to inactivity and scheduled for automatic closure.https://github.com/nodejs/node/issues?q=state%3Aopen%20label%3A%22stale%22
on Jun 11, 2026https://github.com/nodejs/node/issues/55838#event-26603671860
https://github.com/santusht06
santusht06https://github.com/santusht06
on Aug 27, 2026https://github.com/nodejs/node/issues/55838#issuecomment-5437320328
#65580https://github.com/nodejs/node/pull/65580
https://github.com/danfuzz
danfuzzhttps://github.com/danfuzz
on Aug 27, 2026https://github.com/nodejs/node/issues/55838#issuecomment-5440583059
@santusht06https://github.com/santusht06
santusht06https://github.com/santusht06
on Sep 6, 2026https://github.com/nodejs/node/issues/55838#event-30637016780
process: expose enhanced stack trace to uncaughtException handlershttps://github.com/santusht06/node/commit/2fcd2bd2f2ad976a2809fd5d772f07ce686207ff
2fcd2bdhttps://github.com/santusht06/node/commit/2fcd2bd2f2ad976a2809fd5d772f07ce686207ff
process: expose enhanced stack trace to uncaughtException handlershttps://github.com/santusht06/node/commit/e587b695c2dc3b4ca6cdaeedea65e4ded77d23c7
e587b69https://github.com/santusht06/node/commit/e587b695c2dc3b4ca6cdaeedea65e4ded77d23c7
process: expose enhanced stack trace to uncaughtException handlershttps://github.com/santusht06/node/commit/9e69cf357d89c2d1d1736cfe4ed7e16dfc56fe2e
9e69cf3https://github.com/santusht06/node/commit/9e69cf357d89c2d1d1736cfe4ed7e16dfc56fe2e
Sign up for freehttps://github.com/signup?return_to=https://github.com/nodejs/node/issues/55838
Sign in to commenthttps://github.com/login?return_to=https://github.com/nodejs/node/issues/55838
eventsIssues and PRs related to EventEmitter and the events module.https://github.com/nodejs/node/issues?q=state%3Aopen%20label%3A%22events%22
feature requestIssues requesting new Node.js features.https://github.com/nodejs/node/issues?q=state%3Aopen%20label%3A%22feature%20request%22
Node.js feature requestshttps://github.com/orgs/nodejs/projects/4
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.