otel_riverpod 0.1.0-beta.1
otel_riverpod: ^0.1.0-beta.1 copied to clipboard
OpenTelemetry instrumentation for `package:riverpod`. Adds a ProviderObserver that emits short-lived spans for provider add / update / fail / dispose events, with semconv-style attributes so you can s [...]
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.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.