traceperf
    Preparing search index...

    Interface Span

    A manually-ended execution, see startSpan() / monitor.start()

    interface Span {
        id: string;
        end(error?: unknown): void;
        run<R>(fn: () => R): R;
        setLabel(label: string): void;
    }
    Index
    id: string

    Execution id ('' when the span is not recorded: disabled or sampled out)

    • Finish the span; pass the error if the work failed. Calling twice is a no-op.

      Parameters

      • Optionalerror: unknown

      Returns void