otel_flutter_secure_storage 0.2.0
otel_flutter_secure_storage: ^0.2.0 copied to clipboard
OpenTelemetry instrumentation for `package:flutter_secure_storage`. Wraps secure-storage reads / writes with key-aware spans, NEVER recording the value (credentials).
Changelog #
0.2.0 - 2026-08-10 #
Changed #
flutter_secure_storageconstraint widened to>=9.0.0 <12.0.0(verified against 9.2.4 and 11.0.0).storage.*attribute keys are now the exportedSecureStorageSemanticsenum (OTelSemantic) instead of raw string literals. Emitted keys are unchanged.
Added #
example/example.md.- Dartdoc for the suppression API.
0.1.0-beta.1 - 2026-05-16 #
Added #
- Extension methods on
FlutterSecureStorage:tracedWrite,tracedRead,tracedDelete,tracedDeleteAll,tracedContainsKey. Each opens a CLIENT span namedsecure_storage <op> <key>withstorage.system=flutter_secure_storage,storage.operation,storage.key. - Values are never recorded on the span — by definition, secure storage holds credentials and sensitive data.
tracedSecureStorageCall<R>({operation, key, invoke})— generic helper for testing or custom backends.- Zone-scoped suppression
(
runWithoutSecureStorageInstrumentationand the async variant). - 4 tests via the generic helper (span shape with key, span shape without key, exception path, suppression scope).