import type {TraceTree} from './traceTree'; import {TraceTreeNode} from './traceTreeNode'; export class MissingInstrumentationNode extends TraceTreeNode { next: TraceTreeNode; previous: TraceTreeNode; constructor( parent: TraceTreeNode, node: TraceTree.MissingInstrumentationSpan, metadata: TraceTree.Metadata, previous: TraceTreeNode, next: TraceTreeNode ) { super(parent, node, metadata); this.next = next; this.previous = previous; // The space of a missing instrumentation node is gap between previous end and next start this.space = [ previous.value.timestamp * 1e3, (next.value.start_timestamp - previous.value.timestamp) * 1e3, ]; } }