health
Read all exporters' health without inspecting export results. Log counters retain their record-based units; spans and metrics count persistence turns. Each component is a coherent snapshot, but concurrent activity can occur between the three reads. This getter owns no background scope and is current without a flow collector.
Samples
val telemetry = WarpTelemetry(ReplicaId("device"), InMemoryDurableStore())
telemetry.recover()
telemetry.metrics.incrementSum(MetricKey("requests", MetricKind.SUM))
val health = telemetry.health
check(health.metrics.acknowledged == 1L)
check(health.metrics.outstandingFailures == 0L)
check(!health.metrics.recoveryFailed)
// Logs keep record units. No log records have been admitted by this instance.
check(health.logs.accepted == 0L)
check(health.spans.acknowledged == 0L)Content copied to clipboard