Skip to main content

OtelSpan

Datalayer Core


Datalayer Core / OtelSpan

Interface: OtelSpan

Defined in: src/otel/types.ts:13

A single span in a trace.

Properties

attributes?

optional attributes?: Record<string, unknown>

Defined in: src/otel/types.ts:26


children?

optional children?: OtelSpan[]

Defined in: src/otel/types.ts:30

Nested children (computed client-side from parent_span_id).


depth?

optional depth?: number

Defined in: src/otel/types.ts:32

Depth in a span tree (computed client-side).


duration_ms

duration_ms: number

Defined in: src/otel/types.ts:22


end_time

end_time: string

Defined in: src/otel/types.ts:21


events?

optional events?: OtelSpanEvent[]

Defined in: src/otel/types.ts:27


kind

kind: string

Defined in: src/otel/types.ts:19


optional links?: OtelSpanLink[]

Defined in: src/otel/types.ts:28


otel_scope_name?

optional otel_scope_name?: string

Defined in: src/otel/types.ts:25


parent_span_id?

optional parent_span_id?: string

Defined in: src/otel/types.ts:16


service_name

service_name: string

Defined in: src/otel/types.ts:18


span_id

span_id: string

Defined in: src/otel/types.ts:15


span_name

span_name: string

Defined in: src/otel/types.ts:17


start_time

start_time: string

Defined in: src/otel/types.ts:20


status_code?

optional status_code?: string

Defined in: src/otel/types.ts:23


status_message?

optional status_message?: string

Defined in: src/otel/types.ts:24


trace_id

trace_id: string

Defined in: src/otel/types.ts:14