otel_get_storage 0.2.0
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, withrpc.servicefolded into a fully-qualifiedrpc.method). - Dependency floors raised to
dartastic_opentelemetry ^1.1.0-beta.12anddartastic_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. repositoryURL corrected to the canonicalDartasticorg 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, callsrecordException, sets the span status toErrorbefore rethrowing. - Zone-scoped suppression via
runWithoutGetStorageInstrumentation()/Async().