otel_redux 0.3.0
otel_redux: ^0.3.0 copied to clipboard
OpenTelemetry instrumentation for `package:redux`. Provides a Middleware that emits a span per dispatched action.
Changelog #
0.3.0 - 2026-10-11 #
Changed #
- Requires
dartastic_opentelemetry_api >=1.0.0-rc.4 <1.0.0-rc.5. - Breaking: depends on
dartastic_opentelemetry_apionly, no longer on the SDK. The application chooses and initializes the OpenTelemetry SDK. Parameters and fields typed with SDK classes now use the API types (APITracer,APISpan,APILogger, ...); SDK instances are still accepted wherever an API type is expected.
0.2.0 - 2026-08-10 #
Added #
ReduxSemanticsenum (state.system,state.operation,state.action.name) plusstateSystemRedux/stateOperationDispatchvalue constants; the middleware and tests now use these instead of raw string keys. Emitted keys unchanged.- Runnable example (
example/otel_redux_example.dart). - Dartdoc for the zone-scoped suppression API.
0.1.0-beta.1 - 2026-05-16 #
Added #
otelReduxMiddleware<S>({tracer})— a [Middleware] that opens an INTERNAL span around each dispatched action withstate.system=redux,state.operation=dispatch,state.action.name=<runtime type>.- Zone-scoped suppression
(
runWithoutReduxInstrumentation/ async variant). - 3 tests using real
Store<int>instances.