MetricExportResult

sealed interface MetricExportResult

The result of WarpMetricExporter.record and of the single-point mutators built on it. Each arm says what a retry may send: counting an update twice is as wrong as dropping it.

Inheritors

Types

Link copied to clipboard
data class Partial(val uncounted: List<MetricUpdate>, val causes: List<Throwable>) : MetricExportResult

The call did not end durable. uncounted is exactly the updates that were not applied, in call order: those of a kind whose persisted series the store refused to read (#3390). Recording uncounted again counts each of them once. Every other update was counted, in memory, and may not be on disk yet where its kind's write was refused, so retrying it counts it twice; the next successful write of its kind persists it.

Link copied to clipboard

Nothing was counted: an update would carry a sum or histogram series' total over every replica past Long.MAX_VALUE, so the whole call was refused before anything was applied or written. The same call may be refused again until that series is cleared or evicted; a retry has to leave out the series overflow names.

Link copied to clipboard

Every update was counted, and every kind the call touched is durably written.