otel_riverpod 0.1.0-beta.1 copy "otel_riverpod: ^0.1.0-beta.1" to clipboard
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 — a ProviderObserver that emits one short span per Riverpod observer callback (didAddProvider, didUpdateProvider, providerDidFail, didDisposeProvider). Each span carries the OTel semconv-style riverpod.* attributes (provider name / type / argument / family / auto-dispose flag, value type, plus mutation when present).
  • RiverpodSemantics — typed attribute-key enum implementing OTelSemantic, package-local because OTel has no upstream semantic convention for state-management frameworks yet.
  • providerDidFail is recorded via recordException then setStatus(SpanStatusCode.Error, ...), in OTel-spec order.
  • recordValues flag (off by default) for capturing value content on add / update events; valueAttributeMaxLength for clipping.
  • Targets riverpod: ^3.0.0. Works with both pure-Dart ProviderContainer and Flutter's ProviderScope.
0
likes
140
points
5
downloads

Documentation

API reference

Publisher

verified publisherdartastic.io

Weekly Downloads

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 see your state graph in Tempo.

Homepage
Repository (GitHub)
View/report issues

License

Apache-2.0 (license)

Dependencies

dartastic_opentelemetry, dartastic_opentelemetry_api, riverpod

More

Packages that depend on otel_riverpod