startSpan(name, options, context$1) {
        const parentContext = getSpanContext(context$1 || context.active());
        let traceId;
        let isRootSpan = false;
        if (parentContext && parentContext.traceId) {
            traceId = parentContext.traceId;
        }
        else {
            traceId = this.getNextTraceId();
            isRootSpan = true;
        }
        const spanContext = {
            traceId,
            spanId: this.getNextSpanId(),
            traceFlags: 0 /* NONE */
        };
        const span = new TestSpan(this, name, spanContext, (options === null || options === void 0 ? void 0 : options.kind) || exports.SpanKind.INTERNAL, parentContext ? parentContext.spanId : undefined, options === null || options === void 0 ? void 0 : options.startTime);
        this.knownSpans.push(span);
        if (isRootSpan) {
            this.rootSpans.push(span);
        }
        return span;
    }
/**
     * Starts a new Span.
     * @param name - The name of the span.
     * @param options - The SpanOptions used during Span creation.
     */
Starts a new Span.
@param name - The name of the span.
@param options - The SpanOptions used during Span creation.
Starts a new Span . @param name - The name of the span . @param options - The SpanOptions used during Span creation .
startSpan(name, options, context$1) {
        const parentContext = getSpanContext(context$1 || context.active());
        let traceId;
        let isRootSpan = false;
        if (parentContext && parentContext.traceId) {
            traceId = parentContext.traceId;
        }
        else {
            traceId = this.getNextTraceId();
            isRootSpan = true;
        }
        const spanContext = {
            traceId,
            spanId: this.getNextSpanId(),
            traceFlags: 0 
        };
        const span = new TestSpan(this, name, spanContext, (options === null || options === void 0 ? void 0 : options.kind) || exports.SpanKind.INTERNAL, parentContext ? parentContext.spanId : undefined, options === null || options === void 0 ? void 0 : options.startTime);
        this.knownSpans.push(span);
        if (isRootSpan) {
            this.rootSpans.push(span);
        }
        return span;
    }
startSpan ( name , options , context$1 ) { const parentContext = getSpanContext ( context$1 || context . active ( ) ) ; let traceId ; let isRootSpan = false ; if ( parentContext && parentContext . traceId ) { traceId = parentContext . traceId ; } else { traceId = this . getNextTraceId ( ) ; isRootSpan = true ; } const spanContext = { traceId , spanId : this . getNextSpanId ( ) , traceFlags : 0 } ; const span = new TestSpan ( this , name , spanContext , ( options === null || options === void 0 ? void 0 : options . kind ) || exports . SpanKind . INTERNAL , parentContext ? parentContext . spanId : undefined , options === null || options === void 0 ? void 0 : options . startTime ) ; this . knownSpans . push ( span ) ; if ( isRootSpan ) { this . rootSpans . push ( span ) ; } return span ; }
Starts a new Span.
Starts a new Span .
/* NONE */