---
url: https://lit-ui-router.dev/reference/ui-router-otel/interfaces/ProcessedSpan.md
---
[ui-router-otel](../index.md) / ProcessedSpan

# Interface: ProcessedSpan

Defined in: [ui-router-otel/src/processor.ts:18](https://github.com/simshanith/lit-ui-router/blob/b67ac9f739458e91fc6200281c89ddd634e053e8/packages/ui-router-otel/src/processor.ts#L18)

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](https://github.com/simshanith/lit-ui-router/blob/b67ac9f739458e91fc6200281c89ddd634e053e8/packages/ui-router-otel/src/processor.ts#L34) |
|  `endTime` | `readonly` | `HrTime` | When the span ended; read only once it has. | [ui-router-otel/src/processor.ts:30](https://github.com/simshanith/lit-ui-router/blob/b67ac9f739458e91fc6200281c89ddd634e053e8/packages/ui-router-otel/src/processor.ts#L30) |
|  `name` | `readonly` | `string` | The span's name. | [ui-router-otel/src/processor.ts:20](https://github.com/simshanith/lit-ui-router/blob/b67ac9f739458e91fc6200281c89ddd634e053e8/packages/ui-router-otel/src/processor.ts#L20) |
|  `parentSpanContext?` | `readonly` | `SpanContext` | The parent span's context, on SDK 2.x and later. | [ui-router-otel/src/processor.ts:24](https://github.com/simshanith/lit-ui-router/blob/b67ac9f739458e91fc6200281c89ddd634e053e8/packages/ui-router-otel/src/processor.ts#L24) |
|  `parentSpanId?` | `readonly` | `string` | The parent span's id, on SDK 1.x. | [ui-router-otel/src/processor.ts:26](https://github.com/simshanith/lit-ui-router/blob/b67ac9f739458e91fc6200281c89ddd634e053e8/packages/ui-router-otel/src/processor.ts#L26) |
|  `startTime` | `readonly` | `HrTime` | When the span started. | [ui-router-otel/src/processor.ts:28](https://github.com/simshanith/lit-ui-router/blob/b67ac9f739458e91fc6200281c89ddd634e053e8/packages/ui-router-otel/src/processor.ts#L28) |
|  `status` | `readonly` | `SpanStatus` | The span's status code and message. | [ui-router-otel/src/processor.ts:32](https://github.com/simshanith/lit-ui-router/blob/b67ac9f739458e91fc6200281c89ddd634e053e8/packages/ui-router-otel/src/processor.ts#L32) |

## Methods

### spanContext()

```ts
spanContext(): SpanContext;
```

Defined in: [ui-router-otel/src/processor.ts:22](https://github.com/simshanith/lit-ui-router/blob/b67ac9f739458e91fc6200281c89ddd634e053e8/packages/ui-router-otel/src/processor.ts#L22)

The span's trace and span ids.

#### Returns

`SpanContext`
