SqlDelightTelemetryCollector
SQLDelight-backed implementation of TelemetryCollector.
Persists execution records in the execution_history table, enabling post-mortem analysis, analytics uploads, and debugging.
val db = KmpWorkerDatabaseFactory.create(context)
val telemetry = SqlDelightTelemetryCollector(db)
val worker = AndroidKmpWorker(context, telemetry = telemetry)
// Later:
val last50 = telemetry.getHistory(50)
val failures = telemetry.getHistory(10, stateFilter = "FAILED")Content copied to clipboard
Functions
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open suspend override fun onTaskCompleted(taskId: String, state: TaskState, timestamp: Long, retryCount: Int)
Link copied to clipboard
Link copied to clipboard