From cac004b65d9ebc2acb716c19b1550e5a3d00a0d4 Mon Sep 17 00:00:00 2001 From: Bryan English Date: Wed, 29 Apr 2026 13:55:57 -0400 Subject: [PATCH] doc: correct diagnostics_channel built-in channel names The names listed under the Modules and Process built-in channel sections did not match the channel names actually published by the runtime, so subscribing with the documented names produced no events. Signed-off-by: Bryan English PR-URL: https://github.com/nodejs/node/pull/62995 Reviewed-By: Luigi Pinca Reviewed-By: Stephen Belanger --- doc/api/diagnostics_channel.md | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/doc/api/diagnostics_channel.md b/doc/api/diagnostics_channel.md index 3f4eb85b326..c574b30c408 100644 --- a/doc/api/diagnostics_channel.md +++ b/doc/api/diagnostics_channel.md @@ -1302,7 +1302,7 @@ closing the stream can be retrieved using the `stream.rstCode` property. > Stability: 1 - Experimental -##### Event: `'module.require.start'` +##### Event: `'tracing:module.require:start'` * `event` {Object} containing the following properties * `id` Argument passed to `require()`. Module name. @@ -1310,7 +1310,7 @@ closing the stream can be retrieved using the `stream.rstCode` property. Emitted when `require()` is executed. See [`start` event][]. -##### Event: `'module.require.end'` +##### Event: `'tracing:module.require:end'` * `event` {Object} containing the following properties * `id` Argument passed to `require()`. Module name. @@ -1318,7 +1318,7 @@ Emitted when `require()` is executed. See [`start` event][]. Emitted when a `require()` call returns. See [`end` event][]. -##### Event: `'module.require.error'` +##### Event: `'tracing:module.require:error'` * `event` {Object} containing the following properties * `id` Argument passed to `require()`. Module name. @@ -1327,7 +1327,7 @@ Emitted when a `require()` call returns. See [`end` event][]. Emitted when a `require()` throws an error. See [`error` event][]. -##### Event: `'module.import.asyncStart'` +##### Event: `'tracing:module.import:asyncStart'` * `event` {Object} containing the following properties * `id` Argument passed to `import()`. Module name. @@ -1335,7 +1335,7 @@ Emitted when a `require()` throws an error. See [`error` event][]. Emitted when `import()` is invoked. See [`asyncStart` event][]. -##### Event: `'module.import.asyncEnd'` +##### Event: `'tracing:module.import:asyncEnd'` * `event` {Object} containing the following properties * `id` Argument passed to `import()`. Module name. @@ -1343,7 +1343,7 @@ Emitted when `import()` is invoked. See [`asyncStart` event][]. Emitted when `import()` has completed. See [`asyncEnd` event][]. -##### Event: `'module.import.error'` +##### Event: `'tracing:module.import:error'` * `event` {Object} containing the following properties * `id` Argument passed to `import()`. Module name. @@ -1434,7 +1434,7 @@ process has been created. Emitted when [`child_process.spawn()`][] encounters an error. -##### Event: `'execve'` +##### Event: `'process.execve'` * `execPath` {string} * `args` {string\[]}