Interface ReadableSpan

interface ReadableSpan {
    attributes: Attributes;
    droppedAttributesCount: number;
    droppedEventsCount: number;
    droppedLinksCount: number;
    duration: HrTime;
    endTime: HrTime;
    ended: boolean;
    events: TimedEvent[];
    instrumentationScope: InstrumentationScope;
    kind: SpanKind;
    links: Link[];
    name: string;
    parentSpanContext?: SpanContext;
    resource: Resource;
    spanContext: (() => SpanContext);
    startTime: HrTime;
    status: SpanStatus;
}

Properties

attributes: Attributes
droppedAttributesCount: number
droppedEventsCount: number
droppedLinksCount: number
duration: HrTime
endTime: HrTime
ended: boolean
events: TimedEvent[]
instrumentationScope: InstrumentationScope
kind: SpanKind
links: Link[]
name: string
parentSpanContext?: SpanContext
resource: Resource
spanContext: (() => SpanContext)

Type declaration

    • (): SpanContext
    • Returns SpanContext

startTime: HrTime
status: SpanStatus