otel_auto_route 0.1.0
otel_auto_route: ^0.1.0 copied to clipboard
OpenTelemetry instrumentation for `package:auto_route`. An AutoRouterObserver that emits a span per stack transition AND per tab transition - tabbed apps do not lose views.
Changelog #
0.1.0 - 2026-08-08 #
Added #
OTelAutoRouterObserver— a realAutoRouterObserversubclass (previously a typedef alias for a plainNavigatorObserver). The subclass receives auto_route'sdidInitTabRoute/didChangeTabRoutecallbacks and emitsroute.tab_init:<path>/route.tab_change:<path>spans withnavigation.actionandnavigation.route.path(+navigation.previous_route_path) — tab switches inAutoTabsRouterapps are no longer silently lost views. Stack transitions (push / pop / replace / remove) emitroute.<transition>:<path>spans of the same shape.AutoRouteSemantics— typednavigation.*attribute keys, pinned by a wire-format test. Key strings are wire-identical to the siblingotel_go_routerintegration, so a mixed go_router + auto_route codebase produces one uniform trace vocabulary.
Changed #
- Decoupled from
otel_go_router: the dependency (and its pathdependency_override+ publish-order chain) is gone — competing routers must not be coupled, and auto_route users no longer transitively install go_router. The shared route semantics are inlined asAutoRouteSemantics; the wire contract is the key strings, pinned by test, not a shared symbol. - Raised SDK floor to
dartastic_opentelemetry ^1.1.0-beta.12. - Widened
auto_routeto>=9.0.0 <12.0.0(analyze + tests green against both 9.0.0 and 11.1.0).