Interface Span<Context>

Span interface

interface Span<Context> {
    addEvent(name, attributes?): void;
    end(): void;
    recordException(exception, time?): void;
    setAttribute(key, value): void;
    setAttributes(attributes): void;
    setSpanOnContext(ctx): Context;
}

Type Parameters

  • Context = any

Methods

  • end ends the span.

    Note: spans must be ended so that they can be exported.

    Returns void

Generated using TypeDoc