otel_riverpod 0.2.0
otel_riverpod: ^0.2.0 copied to clipboard
OpenTelemetry instrumentation for `package:riverpod`. A ProviderObserver emitting short-lived spans for provider add, update, fail and dispose, so you can see your state graph.
Changelog #
All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
0.2.0 - 2026-08-10 #
0.1.0-beta.1 - 2026-05-16 #
Added #
OTelRiverpodObserver— aProviderObserverthat emits one short span per Riverpod observer callback (didAddProvider,didUpdateProvider,providerDidFail,didDisposeProvider). Each span carries the OTel semconv-styleriverpod.*attributes (provider name / type / argument / family / auto-dispose flag, value type, plus mutation when present).RiverpodSemantics— typed attribute-key enum implementingOTelSemantic, package-local because OTel has no upstream semantic convention for state-management frameworks yet.providerDidFailis recorded viarecordExceptionthensetStatus(SpanStatusCode.Error, ...), in OTel-spec order.recordValuesflag (off by default) for capturing value content on add / update events;valueAttributeMaxLengthfor clipping.- Targets
riverpod: ^3.0.0. Works with both pure-DartProviderContainerand Flutter'sProviderScope.