Options
All
  • Public
  • Public/Protected
  • All
Menu

Namespace Span

Definition of a span object.

Properties

durationInMs

durationInMs: number

Total span duration in milliseconds. Note: Numbers greater than Number.MAX_SAFE_INTEGER will result in rounding issues.

isError

isError: boolean

Indicates if the span has an error.

key

key: string

Unique identifier (spanId) for the span. Note that this field is defined as spanKey in the API and it maps to the spanId in the trace data in Application Performance Monitoring.

Optional kind

kind: undefined | string

Kind associated with the span.

Optional logs

List of logs associated with the span.

operationName

operationName: string

Span name associated with the trace. This is usually the method or URI of the request.

Optional parentSpanKey

parentSpanKey: undefined | string

Unique parent identifier for the span if one exists. For root spans this will be null.

Optional serviceName

serviceName: undefined | string

Service name associated with the span.

Optional sourceName

sourceName: SourceName

Source of span (spans, syn_spans).

Optional tags

tags: Array<Tag>

List of tags associated with the span.

Optional tagsMetadata

tagsMetadata: undefined | object

Metadata about the tags in the span.

timeEnded

timeEnded: Date

Span end time. Timestamp when the span was completed.

timeStarted

timeStarted: Date

Span start time. Timestamp when the span was started.

traceKey

traceKey: string

Unique identifier for the trace.

Functions

getDeserializedJsonObj

  • getDeserializedJsonObj(obj: Span): object

getJsonObj

  • getJsonObj(obj: Span): object