MCPcopy Index your code
hub / github.com/nodejs/node / createTracing

Function createTracing

lib/trace_events.js:83–91  ·  view source on GitHub ↗
(options)

Source from the content-addressed store, hash-verified

81}
82
83function createTracing(options) {
84 validateObject(options, 'options');
85 validateStringArray(options.categories, 'options.categories');
86
87 if (options.categories.length <= 0)
88 throw new ERR_TRACE_EVENTS_CATEGORY_REQUIRED();
89
90 return new Tracing(options.categories);
91}
92
93module.exports = {
94 createTracing,

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…