A single APM span returned as part of a trace.

Hierarchy

  • APMTraceSpan

Constructors

Properties

additionalProperties?: {
    [key: string]: any;
}

A container for additional, undeclared properties. This is a holder for any undeclared properties as specified with the 'additionalProperties' keyword in the OAS document.

Type declaration

  • [key: string]: any
duration: number

The duration of the span, in nanoseconds.

endTime: number

The end time of the span, in Unix nanoseconds.

Error flag for a span. 1 when the span is in error, 0 otherwise.

meta: {
    [key: string]: string;
}

String-valued tags attached to the span. Tag keys starting with _ are filtered out of the response.

Type declaration

  • [key: string]: string
metrics: {
    [key: string]: number;
}

Numeric metrics attached to the span. Metric keys starting with _ are filtered out of the response.

Type declaration

  • [key: string]: number
name: string

The operation name of the span.

parentId: number

The ID of the parent span, or 0 when the span is a trace root.

resource: string

The resource that the span describes.

resourceHash?: string

A hash of the resource field.

restricted?: boolean

Whether access to the span is restricted by the organization's data access policies.

selfTime?: number

The time spent in the span itself, excluding time spent in child spans, in nanoseconds.

service: string

The name of the service that emitted the span.

spanId: number

The span ID, as an unsigned 64-bit integer.

startTime: number

The start time of the span, in Unix nanoseconds.

traceId: number

The lower 64 bits of the trace ID, as an unsigned 64-bit integer.

traceIdFull: string

The full 128-bit trace ID, encoded as a 32-character hexadecimal string.

type: string

The type of the span (for example, web, db, or rpc).

Generated using TypeDoc