otel_provider 0.2.0
otel_provider: ^0.2.0 copied to clipboard
OpenTelemetry instrumentation for `package:provider`. A `ChangeNotifier` mixin emitting short spans on every notifyListeners and dispose - works with any ChangeNotifier.
Use this package as a library
Depend on it
Run this command:
With Flutter:
$ flutter pub add otel_providerThis will add a line like this to your package's pubspec.yaml (and run an implicit flutter pub get):
dependencies:
otel_provider: ^0.2.0Alternatively, your editor might support flutter pub get. Check the docs for your editor to learn more.
Import it
Now in your Dart code, you can use:
import 'package:otel_provider/otel_provider.dart';