Title: diagnostics_channel: add a channel for filesystem operations · Issue #65330 · nodejs/node · GitHub
Open Graph Title: diagnostics_channel: add a channel for filesystem operations · Issue #65330 · nodejs/node
X Title: diagnostics_channel: add a channel for filesystem operations · Issue #65330 · nodejs/node
Description: What is the problem this feature will solve? node:diagnostics_channel does not currently expose a built-in channel for filesystem operations performed through node:fs and node:fs/promises. The proposed scope is the public filesystem APIs...
Open Graph Description: What is the problem this feature will solve? node:diagnostics_channel does not currently expose a built-in channel for filesystem operations performed through node:fs and node:fs/promises. The prop...
X Description: What is the problem this feature will solve? node:diagnostics_channel does not currently expose a built-in channel for filesystem operations performed through node:fs and node:fs/promises. The prop...
Opengraph URL: https://github.com/nodejs/node/issues/65330
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"diagnostics_channel: add a channel for filesystem operations","articleBody":"### What is the problem this feature will solve?\n\n`node:diagnostics_channel` does not currently expose a built-in channel for filesystem operations performed through `node:fs` and `node:fs/promises`.\n\nThe proposed scope is the public filesystem APIs. Calls made directly by native addons or arbitrary native code do not need to be included in this contract.\n\n### What is the feature you are proposing to solve the problem?\n\nAdd a built-in tracing channel family for filesystem operations. One possible naming scheme is:\n\n- `tracing:fs.operation:start`\n- `tracing:fs.operation:end`\n- `tracing:fs.operation:asyncStart`\n- `tracing:fs.operation:asyncEnd`\n- `tracing:fs.operation:error`\n\nThe shared event object could contain:\n\n- `operation`: a stable operation name such as `open`, `read`, `stat`, `readdir`, or `realpath`.\n- `api`: `sync`, `callback`, `promise`, `stream`, or `filehandle`.\n- Path, source/destination, or file descriptor fields when applicable, preserving the value type passed by the caller.\n- `result` and `error` following the existing `TracingChannel` conventions.\n\nLarge read/write buffers should not be copied into event metadata. The exact publication layer—public API wrappers or the lowest shared internal filesystem layer—can be determined during implementation, but the documented payload should remain independent of internal `FSReqCallback` details.\n\nUsing one operation family with an `operation` field avoids requiring wildcard channel subscriptions while allowing subscribers to filter individual operations.\n\n### What alternatives have you considered?\n\nWrapping exports from `node:fs` and `node:fs/promises` is incomplete when references have already been captured and requires synchronization with named built-in ESM exports. `async_hooks` exposes asynchronous resource lifecycles rather than stable filesystem operation semantics and does not cover synchronous calls. Trace events use a different consumption API and payload contract.\n","author":{"url":"https://github.com/mcollina","@type":"Person","name":"mcollina"},"datePublished":"2026-08-16T16:45:07Z","url":"https://github.com/nodejs/node/issues/65330"}
| react-profiling | 0 |
| react-import-map | react,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-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:162d4d48-0f08-0315-317d-43a94195eb4c |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 9680:2B3418:72FCC0:958119:6AED3143 |
| html-safe-nonce | 8bd31ad329f5a3f5753b5fa51f83a17b04a46f303dfc44440be62877f1b7b93a |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5NjgwOjJCMzQxODo3MkZDQzA6OTU4MTE5OjZBRUQzMTQzIiwidmlzaXRvcl9pZCI6IjU1ODUxNzY0NDQxNzQ5Mzg0MzUiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 83480dfc5417a39b103c08bd89353610ff0adbaf9269fb5737080e6557586b8b |
| hovercard-subject-tag | issue:5165280500 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/nodejs/node/65330/issue_layout |
| twitter:image | https://opengraph.githubassets.com/7192695e4ca6202ffec2cfe17d32522d188deeca24c77686195a101831be7845/nodejs/node/issues/65330 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/7192695e4ca6202ffec2cfe17d32522d188deeca24c77686195a101831be7845/nodejs/node/issues/65330 |
| og:image:alt | What is the problem this feature will solve? node:diagnostics_channel does not currently expose a built-in channel for filesystem operations performed through node:fs and node:fs/promises. The prop... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | mcollina |
| hostname | github.com |
| expected-hostname | github.com |
| None | e51d0b7b5ab34b1688c05b54c3ed17b8658b2fa9bca973a9c740683ccb12cf4a |
| turbo-cache-control | no-preview |
| go-import | github.com/nodejs/node git https://github.com/nodejs/node.git |
| octolytics-dimension-user_id | 9950313 |
| octolytics-dimension-user_login | nodejs |
| octolytics-dimension-repository_id | 27193779 |
| octolytics-dimension-repository_nwo | nodejs/node |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 27193779 |
| octolytics-dimension-repository_network_root_nwo | nodejs/node |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 59ebb7b901cc154ecc179a44f266fcf69f343b30 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width