Options
All
  • Public
  • Public/Protected
  • All
Menu

Class BaseSpanData

Represents a real trace span.

Hierarchy

Implements

Index

Constructors

Properties

Methods

Constructors

constructor

  • new BaseSpanData(trace: Trace, spanName: string, parentSpanId: string, skipFrames: number): BaseSpanData
  • Creates a trace context object.

    Parameters

    • trace: Trace

      The object holding the spans comprising this trace.

    • spanName: string

      The name of the span.

    • parentSpanId: string

      The ID of the parent span, or '0' to specify that there is none.

    • skipFrames: number

      the number of frames to remove from the top of the stack when collecting the stack trace.

    Returns BaseSpanData

Properties

span

span: TraceSpan

trace

trace: Trace

The object holding the spans comprising this trace.

Abstract type

type: SpanType

Methods

addLabel

  • addLabel(key: string, value: any): void

endSpan

  • endSpan(timestamp?: Date): void

getTraceContext

  • getTraceContext(): string

Generated using TypeDoc