Skip to content

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 ​

PropertyTypeDescriptionInherited fromDefined in
activateHookSpans?booleanRun 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?booleanRun 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?booleanRun 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?booleanReport transitions core ignores as a no-op (same state and params); off by default.ReportOptions.includeIgnoredui-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.redactionui-router-otel/src/reporter.ts:37
timeResolves?booleanTime resolves as child spans by wrapping their resolveFn; off by default because it patches core objects.-ui-router-otel/src/plugin.ts:15
tracerTracerThe tracer every span starts on; the app owns the provider, processors and exporter.-ui-router-otel/src/plugin.ts:13