knex_dart_otel 0.1.1
knex_dart_otel: ^0.1.1 copied to clipboard
OpenTelemetry instrumentation for knex_dart driver wrappers — query spans and DB client duration metrics via the OTel API.
Use this package as a library
Depend on it
Run this command:
With Dart:
$ dart pub add knex_dart_otelWith Flutter:
$ flutter pub add knex_dart_otelThis will add a line like this to your package's pubspec.yaml (and run an implicit dart pub get):
dependencies:
knex_dart_otel: ^0.1.1Alternatively, your editor might support dart pub get or flutter pub get. Check the docs for your editor to learn more.
Import it
Now in your Dart code, you can use:
import 'package:knex_dart_otel/knex_dart_otel.dart';