ui-router-otel / OtelPluginOptions
Interface: OtelPluginOptions
Defined in: ui-router-otel/src/plugin.ts:11
What OtelPlugin takes as router.plugin(OtelPlugin, options)'s second argument.
Extends
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 |
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 |
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 |
includeIgnored? | boolean | Report transitions core ignores as a no-op (same state and params); off by default. | ReportOptions.includeIgnored | ui-router-otel/src/reporter.ts:39 |
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.redaction | ui-router-otel/src/reporter.ts:37 |
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 |
tracer | Tracer | The tracer every span starts on; the app owns the provider, processors and exporter. | - | ui-router-otel/src/plugin.ts:13 |