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

# Interface: OtelPluginOptions

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

What `OtelPlugin` takes as `router.plugin(OtelPlugin, options)`'s second argument.

## Extends

* [`ReportOptions`](ReportOptions.md)

## Properties

| Property | Type | Description | Inherited from | Defined in |
| ------ | ------ | ------ | ------ | ------ |
|  `activateHookSpans?` | `boolean` | Run each app transition hook, a state's own `onEnter`, `onExit` and `onRetain` included, with its phase's span active, so a span the app starts in it is that phase span's child. Core's own hooks are left as they are. Off by default: it wraps the callbacks in core's hook registry, and a transition whose `onBefore` hook ran is reported even when core then ignores it. | - | [ui-router-otel/src/plugin.ts:28](https://github.com/simshanith/lit-ui-router/blob/b67ac9f739458e91fc6200281c89ddd634e053e8/packages/ui-router-otel/src/plugin.ts#L28) |
|  `activateLazyLoadSpans?` | `boolean` | Run each state's `lazyLoad` with a `lazy load <state>` span active, a child of the transition's span, so a span the app starts in it is that span's child. Off by default: it patches core's state objects. | - | [ui-router-otel/src/plugin.ts:33](https://github.com/simshanith/lit-ui-router/blob/b67ac9f739458e91fc6200281c89ddd634e053e8/packages/ui-router-otel/src/plugin.ts#L33) |
|  `activateResolveSpans?` | `boolean` | Run each resolve's function with its resolve span active, so a span the app starts in it is that span's child. It spans resolves itself, so `timeResolves` is not needed with it. Off by default: it patches core objects too, and past an `await` the span stays active only under a context manager that follows async work. | - | [ui-router-otel/src/plugin.ts:21](https://github.com/simshanith/lit-ui-router/blob/b67ac9f739458e91fc6200281c89ddd634e053e8/packages/ui-router-otel/src/plugin.ts#L21) |
|  `includeIgnored?` | `boolean` | Report transitions core ignores as a no-op (same state and params); off by default. | [`ReportOptions`](ReportOptions.md).[`includeIgnored`](ReportOptions.md#includeignored) | [ui-router-otel/src/reporter.ts:39](https://github.com/simshanith/lit-ui-router/blob/b67ac9f739458e91fc6200281c89ddd634e053e8/packages/ui-router-otel/src/reporter.ts#L39) |
|  `redaction?` | `Partial`<`Redaction`> | What reaches a span, in the devtools export's shape: only the params `params` lists (`'all'` for every one) become `uirouter.transition.param.<key>` attributes, and the rest are omitted rather than redacted; `messages: false` keeps error messages out of span status and exception events. By default no param is kept and messages are. | [`ReportOptions`](ReportOptions.md).[`redaction`](ReportOptions.md#redaction) | [ui-router-otel/src/reporter.ts:37](https://github.com/simshanith/lit-ui-router/blob/b67ac9f739458e91fc6200281c89ddd634e053e8/packages/ui-router-otel/src/reporter.ts#L37) |
|  `timeResolves?` | `boolean` | Time resolves as child spans by wrapping their `resolveFn`; off by default because it patches core objects. | - | [ui-router-otel/src/plugin.ts:15](https://github.com/simshanith/lit-ui-router/blob/b67ac9f739458e91fc6200281c89ddd634e053e8/packages/ui-router-otel/src/plugin.ts#L15) |
|  `tracer` | `Tracer` | The tracer every span starts on; the app owns the provider, processors and exporter. | - | [ui-router-otel/src/plugin.ts:13](https://github.com/simshanith/lit-ui-router/blob/b67ac9f739458e91fc6200281c89ddd634e053e8/packages/ui-router-otel/src/plugin.ts#L13) |
