otel_watch_it 0.2.0
otel_watch_it: ^0.2.0 copied to clipboard
OpenTelemetry instrumentation for package:watch_it. Wraps GetIt scope push/drop transitions and callOnce blocks in CLIENT-kind spans to expose DI scope churn.
Changelog #
0.2.0 - 2026-08-10 #
Changed #
- Raised dependency floors:
get_it^9.2.0,watch_it^2.4.0(drops the discontinued transitivefunctional_listener).
0.1.0-beta.1 - 2026-05-16 #
Added #
callOnceTraced(name, init, {dispose})— drop-in replacement forwatch_it'scallOncethat wraps the one-shot init (and the optional disposer) in CLIENT-kind spans.pushScopeTraced(name, {init, dispose, isFinal})— drop-in replacement forpushScope; init and dispose each get their own CLIENT-kind span.onDisposeTraced(name, dispose)— drop-in replacement foronDispose.- Local
WatchItSemanticsenum (implementsOTelSemantic) for thewidget.lifecycle,widget.name,di.system, anddi.scope.is_finalkeys. - Zone-scoped suppression via
runWithoutWatchItInstrumentation(). - Eight
flutter_testwidget tests using the canonical_helpers/otel_test_harness.dart(real OTel SDK pointed at an in-memory exporter).