otel_watch_it 0.2.0 copy "otel_watch_it: ^0.2.0" to clipboard
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 transitive functional_listener).

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

Added #

  • callOnceTraced(name, init, {dispose}) — drop-in replacement for watch_it's callOnce that wraps the one-shot init (and the optional disposer) in CLIENT-kind spans.
  • pushScopeTraced(name, {init, dispose, isFinal}) — drop-in replacement for pushScope; init and dispose each get their own CLIENT-kind span.
  • onDisposeTraced(name, dispose) — drop-in replacement for onDispose.
  • Local WatchItSemantics enum (implements OTelSemantic) for the widget.lifecycle, widget.name, di.system, and di.scope.is_final keys.
  • Zone-scoped suppression via runWithoutWatchItInstrumentation().
  • Eight flutter_test widget tests using the canonical _helpers/otel_test_harness.dart (real OTel SDK pointed at an in-memory exporter).
0
likes
160
points
75
downloads

Documentation

API reference

Publisher

verified publisherdartastic.io

Weekly Downloads

OpenTelemetry instrumentation for package:watch_it. Wraps GetIt scope push/drop transitions and callOnce blocks in CLIENT-kind spans to expose DI scope churn.

Homepage
Repository (GitHub)
View/report issues

License

Apache-2.0 (license)

Dependencies

dartastic_opentelemetry, dartastic_opentelemetry_api, flutter, get_it, watch_it

More

Packages that depend on otel_watch_it