otel_flutter_bloc 0.2.0
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.12anddartastic_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-exportedOTelBlocObserver+BlocSemanticssurface is source-compatible across the range. repositoryURL corrected to the canonicalDartasticorg casing so pub.dev repository verification succeeds.- Docs: initialization snippets corrected to the SDK's
OTel.initializeentry point (and now show theflutter_blocimport 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 abloc.*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 influtter_blocso Flutter apps add one dependency instead of managingbloc+flutter_bloc+dartastic_bloc_otelseparately. - 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 noOTelBlocApp-style widget to add. The package exists for the dependency-mapping convenience and to match thedartastic_flutter_riverpod_otelcore/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.