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

Production-ready crash tracking for Flutter. Zero Firebase dependency. Ships crash reports to any REST API with offline queue, breadcrumbs, session tracking, device context, and fingerprint-based issu [...]

1.1.0 #

Added #

  • allowBadCertificates option in ErrorMonitorApiConfig for localhost / dev server testing.
  • Self-signed TLS certificate support via HttpClient.badCertificateCallback.
  • Debug-mode logging for SocketException, HandshakeException, and HTTP errors with actionable tips.
  • INTERNET permission in Android plugin manifest.
  • Example app (example/lib/main.dart) with full feature demo.
  • Localhost / Development Setup section in README.

Fixed #

  • Renamed console header from ERROR TRACKER to ERROR MONITOR.
  • Renamed offline queue prefix from et_queue_ to em_queue_.
  • Updated CrashReport doc comment (removed Firebase reference).
  • Updated iOS and macOS podspec metadata (version, summary, author, homepage).
  • Added author name to LICENSE.

1.0.0 #

Initial stable release.

Core #

  • 3-layer automatic error capture:
    • FlutterError.onError — widget build, layout, rendering errors.
    • runZonedGuarded — unhandled async/Future/Stream errors.
    • PlatformDispatcher.instance.onError — native platform errors.
  • Drop-in ErrorMonitor.runApp() replaces Flutter's runApp().
  • Advanced ErrorMonitor.init() for custom setups and testing.

Reporting #

  • Custom REST API reporting — POST JSON to any HTTP endpoint.
  • Fingerprint-based issue grouping (SHA-256, same crash = same group).
  • Fatal vs non-fatal classification per capture layer.
  • Offline queue with auto-retry (SharedPreferences, max 100, FIFO eviction).
  • Exponential back-off retry strategy (1s → 2s → 4s).

Context #

  • Rich device info: model, brand, OS, SDK, battery, network type/speed, RAM, storage, CPU cores, app memory, performance tier, physical device flag.
  • Breadcrumb trail — 50-event circular buffer (navigation, user action, network, state).
  • Session tracking — session ID + session age on every report.
  • User context — setUser(UserInfo(id, email, name)).
  • Custom key-value pairs — setCustomKey(key, value).

Logging #

  • Manual logging: ErrorMonitor.log(message, {stackTrace, level}).
  • API error logging: ErrorMonitor.logApiError(endpoint, statusCode, message).
  • Structured console output via dart:developer (always on).
  • ErrorMonitorConfig.minimumLevel severity filter.
  • ErrorMonitorConfig.onReport callback for custom sinks/analytics.
  • ErrorMonitorConfig.onError legacy callback for raw error records.
0
likes
130
points
119
downloads

Publisher

unverified uploader

Weekly Downloads

Production-ready crash tracking for Flutter. Zero Firebase dependency. Ships crash reports to any REST API with offline queue, breadcrumbs, session tracking, device context, and fingerprint-based issue grouping.

Repository (GitHub)
View/report issues

Topics

#crash-reporting #error-handling #monitoring #logging #debugging

Documentation

API reference

License

MIT (license)

Dependencies

battery_plus, connectivity_plus, device_info_plus, flutter, shared_preferences, uuid

More

Packages that depend on error_monitor

Packages that implement error_monitor