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

OpenTelemetry instrumentation for package:get_storage. Wraps read, write, remove and erase calls in CLIENT-kind spans following the OTel database semantic conventions.

Changelog #

0.2.0 - 2026-08-10 #

Changed #

  • Semantic conventions updated to the current OTel registry: deprecated attribute keys are no longer emitted (db.system -> db.system.name, db.operation -> db.operation.name, rpc.system -> rpc.system.name, with rpc.service folded into a fully-qualified rpc.method).
  • Dependency floors raised to dartastic_opentelemetry ^1.1.0-beta.12 and dartastic_opentelemetry_api ^1.0.0-rc.1. The previous floors declared compatibility with API versions that predate the semconv enums this package uses and could not actually resolve-and-compile.
  • repository URL corrected to the canonical Dartastic org casing so pub.dev repository verification succeeds.

Added #

  • tracedGetStorageCallSync<R>(...) / tracedGetStorageCall<R>(...) — wraps GetStorage operations in a CLIENT-kind span following the OTel DB semantic conventions (db.system.name=get_storage, db.operation.name, db.collection.name, db.query.text=<key>).
  • GetStorage.readTraced(...), writeTraced(...), removeTraced(...), eraseTraced(...) extension methods as drop-in replacements.
  • Error path records error.type, calls recordException, sets the span status to Error before rethrowing.
  • Zone-scoped suppression via runWithoutGetStorageInstrumentation() / Async().
0
likes
160
points
71
downloads

Documentation

API reference

Publisher

verified publisherdartastic.io

Weekly Downloads

OpenTelemetry instrumentation for package:get_storage. Wraps read, write, remove and erase calls in CLIENT-kind spans following the OTel database semantic conventions.

Homepage
Repository (GitHub)
View/report issues

License

Apache-2.0 (license)

Dependencies

dartastic_opentelemetry, dartastic_opentelemetry_api, flutter, get_storage

More

Packages that depend on otel_get_storage