(nameOrChannels)
| 411 | #continuationWindow; |
| 412 | |
| 413 | constructor(nameOrChannels) { |
| 414 | // Create a BoundedChannel for start/end (call window) |
| 415 | if (typeof nameOrChannels === 'string') { |
| 416 | this.#callWindow = new BoundedChannel(nameOrChannels); |
| 417 | this.#continuationWindow = new BoundedChannel({ |
| 418 | start: channel(`tracing:${nameOrChannels}:asyncStart`), |
| 419 | end: channel(`tracing:${nameOrChannels}:asyncEnd`), |
| 420 | }); |
| 421 | } else if (typeof nameOrChannels === 'object') { |
| 422 | this.#callWindow = new BoundedChannel({ |
| 423 | start: nameOrChannels.start, |
| 424 | end: nameOrChannels.end, |
| 425 | }); |
| 426 | this.#continuationWindow = new BoundedChannel({ |
| 427 | start: nameOrChannels.asyncStart, |
| 428 | end: nameOrChannels.asyncEnd, |
| 429 | }); |
| 430 | } |
| 431 | |
| 432 | // Create individual channel for error |
| 433 | ObjectDefineProperty(this, 'error', { |
| 434 | __proto__: null, |
| 435 | value: channelFromMap(nameOrChannels, 'error', 'TracingChannel'), |
| 436 | }); |
| 437 | } |
| 438 | |
| 439 | get start() { |
| 440 | return this.#callWindow.start; |
nothing calls this directly
no test coverage detected