---
url: https://lit-ui-router.dev/reference/ui-router-otel.md
---
# ui-router-otel

The API reference of the [`ui-router-otel` package](/packages/ui-router-otel), whose page covers installation and usage.

## Classes

* [DevtoolsSpanProcessor](classes/DevtoolsSpanProcessor.md) — A span processor that sends every span to the devtools panel's Timeline.
* [OtelPlugin](classes/OtelPlugin.md) — Reports the router's transitions as OpenTelemetry spans; `dispose()` ends the open ones and stops.

## Interfaces

* [DevtoolsSpanProcessorOptions](interfaces/DevtoolsSpanProcessorOptions.md) — What `DevtoolsSpanProcessor` takes as its second argument.
* [OtelPluginOptions](interfaces/OtelPluginOptions.md) — What `OtelPlugin` takes as `router.plugin(OtelPlugin, options)`'s second argument.
* [ProcessedSpan](interfaces/ProcessedSpan.md) — What the processor reads of a span: the part of the SDK's `ReadableSpan` that every SDK major shares, typed from `@opentelemetry/api` alone.
* [ReportOptions](interfaces/ReportOptions.md) — What reaches a span, and which transitions are reported; `OtelPluginOptions` extends it.
* [SpanRecord](interfaces/SpanRecord.md) — A span from a tracer, in a shape that names no tracing library.
* [SpanSink](interfaces/SpanSink.md) — Where spans go: the `<ui-router-devtools>` element, or anything else with its `addSpan`.

## Type Aliases

* [SpanAttributeValue](type-aliases/SpanAttributeValue.md) — A span attribute's value, as tracing libraries allow it: a scalar or an array of one kind of scalar.
