Skip to content

Commit 07bde05

Browse files
deokjinkimtargos
authored andcommittedOct 2, 2024
doc: make some parameters optional in tracingChannel.traceCallback
Plus, add missing `position` parameter to CJS example. PR-URL: #54068 Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Ulises Gascón <ulisesgascongonzalez@gmail.com> Reviewed-By: Jake Yuesong Li <jake.yuesong@gmail.com>
1 parent 782a6a0 commit 07bde05

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
 

‎doc/api/diagnostics_channel.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -863,7 +863,7 @@ channels.tracePromise(async () => {
863863
});
864864
```
865865

866-
#### `tracingChannel.traceCallback(fn, position, context, thisArg, ...args)`
866+
#### `tracingChannel.traceCallback(fn[, position[, context[, thisArg[, ...args]]]])`
867867

868868
<!-- YAML
869869
added:
@@ -917,7 +917,7 @@ const channels = diagnostics_channel.tracingChannel('my-channel');
917917
channels.traceCallback((arg1, callback) => {
918918
// Do something
919919
callback(null, 'result');
920-
}, {
920+
}, 1, {
921921
some: 'thing',
922922
}, thisArg, arg1, callback);
923923
```

0 commit comments

Comments
 (0)
Please sign in to comment.