(options)
| 81 | } |
| 82 | |
| 83 | function 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 | |
| 93 | module.exports = { |
| 94 | createTracing, |
no outgoing calls
no test coverage detected
searching dependent graphs…