Options
All
  • Public
  • Public/Protected
  • All
Menu

This class represents a span.

Hierarchy

  • Span

Implements

Index

Constructors

Properties

attributes: Attributes = {}
endTime: HrTime = ...
events: TimedEvent[] = []
instrumentationLibrary: InstrumentationLibrary
kind: SpanKind
links: Link[] = []
name: string
parentSpanId?: string
resource: IResource
startTime: HrTime
status: SpanStatus = ...

Accessors

  • get droppedAttributesCount(): number
  • get droppedEventsCount(): number
  • get droppedLinksCount(): number
  • get ended(): boolean

Methods

  • Marks the end of Span execution.

    Call to End of a Span MUST not have any effects on child spans. Those may still be running and can be ended later.

    Do not return this. The Span generally should not be used after it is ended so chaining is not desired in this context.

    Parameters

    Returns void

  • isRecording(): boolean
  • updateName(name: string): Span

Generated using TypeDoc