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
| Property | Modifier | Type | Description | Defined in |
|---|---|---|---|---|
attributes | readonly | Attributes | The span's attributes. | ui-router-otel/src/processor.ts:34 |
endTime | readonly | HrTime | When the span ended; read only once it has. | ui-router-otel/src/processor.ts:30 |
name | readonly | string | The span's name. | ui-router-otel/src/processor.ts:20 |
parentSpanContext? | readonly | SpanContext | The parent span's context, on SDK 2.x and later. | ui-router-otel/src/processor.ts:24 |
parentSpanId? | readonly | string | The parent span's id, on SDK 1.x. | ui-router-otel/src/processor.ts:26 |
startTime | readonly | HrTime | When the span started. | ui-router-otel/src/processor.ts:28 |
status | readonly | SpanStatus | The 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