flutter_api_observability 1.1.0 copy "flutter_api_observability: ^1.1.0" to clipboard
flutter_api_observability: ^1.1.0 copied to clipboard

A production-grade Flutter API Observability Toolkit providing real-time request history, endpoint performance statistics, sensitive data redaction, error normalization, and health reporting for Flutt [...]

Changelog #

1.1.0 #

  • Added ApiGuardInterceptor for integrating flutter_api_observability with existing Dio instances without creating a second HTTP client.
  • Added Request History (api.history) storing typed ApiRequestRecord items with unique Request IDs (API-0001), timestamps, durations, status codes, retry counts, and redacted payloads.
  • Added History Memory Management with maxHistoryEntries (default 100), FIFO eviction, and maxHistoryBodyLength (default 4096) payload truncation.
  • Added Endpoint Performance Statistics (ApiEndpointStats) including request volume, success rates, average duration, median duration, status code distributions, and consistently slow endpoint detection.
  • Added History Filtering through api.failedRequests, api.slowRequests, byEndpoint, byStatusCode, and byMethod.
  • Added Diagnostic Snapshot Export through api.exportDiagnostics() with JSON-safe health metrics, endpoint statistics, and recent request history.
  • Added History & Health Reset Operations through api.clearHistory(), api.resetHealth(), and api.resetDiagnostics().
  • Enhanced Sensitive Data Redaction with expanded default keys including token, password, authorization, access_token, refresh_token, secret, client_secret, api_key, bearer, cookie, set-cookie, credit_card, and cvv, with case-insensitive matching.
  • Enhanced Structured Logging with unique Request IDs and retry diagnostics including attempt count, failure reason, and backoff delay.
  • Added support for observing existing Dio clients through ApiGuardInterceptor.
  • Upgraded the Flutter Example App to an interactive API observability dashboard.
  • Expanded automated coverage to 46 tests, including history, request IDs, endpoint statistics, retries, redaction, payload truncation, diagnostics export, interceptor integration, security attacks, and stress testing.

1.0.0 #

  • Initial release of flutter_api_observability.
  • API error normalization for common HTTP and network failures.
  • Configurable request logging.
  • Sensitive data redaction.
  • Retry policies with method safety.
  • Slow request detection.
  • API health tracking.
0
likes
130
points
79
downloads

Documentation

API reference

Publisher

verified publisherfaroukmohamed.com

Weekly Downloads

A production-grade Flutter API Observability Toolkit providing real-time request history, endpoint performance statistics, sensitive data redaction, error normalization, and health reporting for Flutter and Dart.

Repository (GitHub)
View/report issues

Topics

#dio #network #retry #logging #error-handling

License

MIT (license)

Dependencies

dio, flutter

More

Packages that depend on flutter_api_observability