otel_flutter_bloc 0.2.0 copy "otel_flutter_bloc: ^0.2.0" to clipboard
otel_flutter_bloc: ^0.2.0 copied to clipboard

Flutter overlay for `otel_bloc`. Re-exports the core observer + semantics and pulls in `flutter_bloc` so Flutter apps add one dependency to get OTel coverage of every Bloc / Cubit.

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 #

Changed #

  • Dependency floors raised to dartastic_opentelemetry ^1.1.0-beta.12 and dartastic_opentelemetry_api ^1.0.0-rc.1, matching the core.
  • Core constraint widened to otel_bloc >=0.1.0-beta.1 <0.3.0: the previous caret (^0.1.0-beta.1) excluded the core's 0.2.0 line, so this overlay could never resolve the modernized-semconv core it is developed against. The re-exported OTelBlocObserver + BlocSemantics surface is source-compatible across the range.
  • repository URL corrected to the canonical Dartastic org casing so pub.dev repository verification succeeds.
  • Docs: initialization snippets corrected to the SDK's OTel.initialize entry point (and now show the flutter_bloc import the snippet uses); links to the core package point at pub.dev instead of repository-relative paths.

Added #

  • Runnable example/main.dart: a counter-Cubit Flutter app with the observer installed once at startup; every state change lands as a bloc.* span.

0.1.0-beta.1 - 2026-05-16 #

Added #

  • Slim Flutter overlay for dartastic_bloc_otel. Re-exports the core observer + semantics and pulls in flutter_bloc so Flutter apps add one dependency instead of managing bloc + flutter_bloc + dartastic_bloc_otel separately.
  • Targets flutter_bloc: ^9.0.0. No new types yet — the bloc observer install pattern is global (Bloc.observer = ...), not widget-scoped, so there's no OTelBlocApp-style widget to add. The package exists for the dependency-mapping convenience and to match the dartastic_flutter_riverpod_otel core/overlay pattern.

Note #

This is a new package created when dartastic_flutter_bloc_otel (the package previously published under this name) was renamed to dartastic_bloc_otel. The previous package was the pure-Dart core that only depended on bloc; the name was misleading. Flutter apps that were depending on the old dartastic_flutter_bloc_otel can keep using it — the surface is now provided by this overlay, which re-exports the core and adds flutter_bloc as a dependency.

0
likes
160
points
74
downloads

Documentation

API reference

Publisher

verified publisherdartastic.io

Weekly Downloads

Flutter overlay for `otel_bloc`. Re-exports the core observer + semantics and pulls in `flutter_bloc` so Flutter apps add one dependency to get OTel coverage of every Bloc / Cubit.

Homepage
Repository (GitHub)
View/report issues

License

Apache-2.0 (license)

Dependencies

dartastic_opentelemetry, dartastic_opentelemetry_api, flutter, flutter_bloc, otel_bloc

More

Packages that depend on otel_flutter_bloc