Skip to content

ui-router-otel / ProcessedSpan

Interface: ProcessedSpan ​

Defined in: ui-router-otel/src/processor.ts:18

What the processor reads of a span: the part of the SDK's ReadableSpan that every SDK major shares, typed from @opentelemetry/api alone. SDK 1.x names the parent by parentSpanId, later ones by parentSpanContext.

Properties ​

PropertyModifierTypeDescriptionDefined in
attributesreadonlyAttributesThe span's attributes.ui-router-otel/src/processor.ts:34
endTimereadonlyHrTimeWhen the span ended; read only once it has.ui-router-otel/src/processor.ts:30
namereadonlystringThe span's name.ui-router-otel/src/processor.ts:20
parentSpanContext?readonlySpanContextThe parent span's context, on SDK 2.x and later.ui-router-otel/src/processor.ts:24
parentSpanId?readonlystringThe parent span's id, on SDK 1.x.ui-router-otel/src/processor.ts:26
startTimereadonlyHrTimeWhen the span started.ui-router-otel/src/processor.ts:28
statusreadonlySpanStatusThe span's status code and message.ui-router-otel/src/processor.ts:32

Methods ​

spanContext() ​

ts
spanContext(): SpanContext;

Defined in: ui-router-otel/src/processor.ts:22

The span's trace and span ids.

Returns ​

SpanContext