Skip to content

Commit 55f8ac3

Browse files
deokjinkimtargos
authored andcommitted
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 b85b13b commit 55f8ac3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: doc/api/diagnostics_channel.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -872,7 +872,7 @@ channels.tracePromise(async () => {
872872
});
873873
```
874874

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

877877
<!-- YAML
878878
added:
@@ -927,7 +927,7 @@ const channels = diagnostics_channel.tracingChannel('my-channel');
927927
channels.traceCallback((arg1, callback) => {
928928
// Do something
929929
callback(null, 'result');
930-
}, {
930+
}, 1, {
931931
some: 'thing',
932932
}, thisArg, arg1, callback);
933933
```

0 commit comments

Comments
 (0)