otel_sqflite 0.2.0 copy "otel_sqflite: ^0.2.0" to clipboard
otel_sqflite: ^0.2.0 copied to clipboard

OpenTelemetry instrumentation for `package:sqflite` / `sqflite_common`. Extensions on DatabaseExecutor wrapping query, insert, update, delete and rawQuery with `db.*` spans.

Changelog #

0.2.0 - 2026-10-11 #

Changed #

  • Requires dartastic_opentelemetry_api >=1.0.0-rc.4 <1.0.0-rc.5.
  • Breaking: depends on dartastic_opentelemetry_api only, no longer on the SDK. The application chooses and initializes the OpenTelemetry SDK. Parameters and fields typed with SDK classes now use the API types (APITracer, APISpan, APILogger, ...); SDK instances are still accepted wherever an API type is expected.

0.1.0 - 2026-08-10 #

Added #

  • Extension methods on DatabaseExecutor (covers both Database and Transaction): tracedQuery, tracedInsert, tracedUpdate, tracedDelete, tracedRawQuery, tracedExecute. Each opens a CLIENT span with db.system.name=sqlite, db.collection.name=<table>, db.operation.name. Raw operations also record db.query.text.
  • tracedSqfliteCall<R> — generic helper for testing or custom call sites.
  • DatabaseException-aware error handling: error.type is set to DatabaseException for known sqflite errors, otherwise to the runtime class name.
  • Zone-scoped suppression (runWithoutSqfliteInstrumentation and async variant).
  • 4 tests via the generic helper.
0
likes
160
points
104
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

OpenTelemetry instrumentation for `package:sqflite` / `sqflite_common`. Extensions on DatabaseExecutor wrapping query, insert, update, delete and rawQuery with `db.*` spans.

Homepage
Repository (GitHub)
View/report issues

License

Apache-2.0 (license)

Dependencies

dartastic_opentelemetry_api, sqflite_common

More

Packages that depend on otel_sqflite