You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit f73bebb
Browse filesBrowse the repository at this point in the historyBrowse files
fs: add diagnostics_channel tracing for operations
Each node:fs operation publishes to its own TracingChannel, named
fs.<operation>. The sync, callback, and promise forms of an operation
share a channel, and the event context carries the form in `api`, the
caller's arguments in `args`, and the leading arguments by name.
The events are published from JavaScript with the TracingChannel
helpers, so all events of a call share one context object, stores bound
with bindStore() reach the callback and nested operations, and the
error event is always followed by end or asyncEnd.
Each traced function starts with a check that calls the function again
inside the trace when the channel has subscribers. The whole body then
runs inside the start scope, so requests capture the bound stores, and
captured function references still publish.
Assisted-by: claude:opus-5.5
Signed-off-by: Tim Fish <tim@timfish.uk>
0 commit comments