easyslo 0.2.3
easyslo: ^0.2.3 copied to clipboard
Track success rates in Flutter apps with offline queueing and automatic retries.
Changelog #
0.2.3 #
- Simplify the quick start and example app. EasySLO initializes the Flutter binding internally.
0.2.2 #
- Shorten the package README and simplify the startup and outcome examples.
0.2.1 #
-
Simplify the quick start and show how to start the app while the SDK initializes.
-
Include
customer_idon every new event, defaulting to a generated UUID persisted in the SDK database. Set an account ID withEasySlo.init(..., customerId: ...)orEasySlo.setCustomerId(...); reset to the generated ID withEasySlo.setCustomerId(null). Captured IDs remain immutable through retries. -
Automatically classify numeric
statusCodefields on failure/response objects and retainedresponse.statusCodevalues. Supports package:http responses and streams, Dio/Retrofit, Chopper, GetConnect, and native dart:io responses without additional runtime dependencies. -
Preserve typed network, timeout, cancellation, and explicit-status precedence. Never inspect response bodies, headers, URLs, messages, or streams. Unknown objects with no usable status remain
OTHER. -
Pass a failed response directly to
EasySlo.failurewhen the client returns it instead of throwing. Errors that discard their response still need an explicit status code.
0.2.0 #
-
Breaking: rename the public
Sdkfacade toEasySlo. Update calls toEasySlo.init,EasySlo.success,EasySlo.failure,EasySlo.flush,EasySlo.dispose, andEasySlo.diagnostics. The package import is unchanged. -
Report the caught object’s runtime class name as
exception_namealongside the existing failure bucket. Messages, stack traces, and request data remain excluded. -
Persist exception names across offline retries and restarts. Obfuscated builds may report obfuscated type names.
0.1.1 #
- Accept any
ObjectinSdk.failure, allowing values fromcatch (error)without anExceptiontype guard. - Classify unrecognized objects and Dart
Errorinstances asOTHER, preserving existing exception classification and explicit HTTP status handling. Failure objects are never stringified or uploaded.
0.1.0 #
-
Initial public EasySLO Flutter SDK release for Android and iOS.
-
Use
https://easyslo.comas the default ingestion service. -
Persist outcome events offline and retry delivery with bounded queues and backoff.
-
Breaking:
Sdk.failure(eventKey, exception, {statusCode})replaces string causes with automaticNETWORK,TIMEOUT,HTTP_4XX,HTTP_5XX, andOTHERbuckets. Recognize Dart, package:http, and Dio exceptions without storing exception details. Optional HTTP status supports other clients; callers should skip intentional cancellations. -
Include Android internet permission through the SDK plugin manifest, removing manual app manifest setup.
-
Initialize with
Sdk.init(key); the SDK manages the service address. Remove the formerendpointargument from integrations. -
Keep the active client on repeated initialization with the same key and queue namespace.
-
Serialize initialization and disposal so cleanup during startup releases all resources.
-
Expose non-null diagnostics and document the complete Flutter setup flow, supported platforms, and service configuration for SDK development.