otel_flutter_secure_storage 0.2.0 copy "otel_flutter_secure_storage: ^0.2.0" to clipboard
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).

otel_flutter_secure_storage #

OpenTelemetry instrumentation for package:flutter_secure_storage.

final fss = FlutterSecureStorage();

await fss.tracedWrite(key: 'auth.token', value: token);
final t = await fss.tracedRead(key: 'auth.token');
await fss.tracedDelete(key: 'auth.token');
await fss.tracedDeleteAll();

Each call emits a CLIENT span:

  • name: secure_storage <op> <key>
  • storage.system = flutter_secure_storage
  • storage.operation = write / read / delete / deleteAll / containsKey
  • storage.key = <key> (omitted on deleteAll)

Privacy #

The stored value never appears on the span. Secure storage is for credentials, tokens, and other sensitive data — leaking it into traces would defeat the purpose.

For tracedRead, the result presence is also intentionally not surfaced — that could leak whether a particular key exists.

If you want even less detail (no keys either), use the suppression scope:

await runWithoutSecureStorageInstrumentationAsync(() async {
  await fss.tracedRead(key: 'auth.token');
});

License #

Apache 2.0

0
likes
160
points
72
downloads

Documentation

API reference

Publisher

verified publisherdartastic.io

Weekly Downloads

OpenTelemetry instrumentation for `package:flutter_secure_storage`. Wraps secure-storage reads / writes with key-aware spans, NEVER recording the value (credentials).

Homepage
Repository (GitHub)
View/report issues

License

Apache-2.0 (license)

Dependencies

dartastic_opentelemetry, dartastic_opentelemetry_api, flutter, flutter_secure_storage

More

Packages that depend on otel_flutter_secure_storage