MetricWriteResult

sealed interface MetricWriteResult

The result of a merge* on WarpMetricExporter, or of WarpMetricExporter.clear. A merge is a lattice join and a clear is a delete, so either may always be called again: a second merge of the same state changes nothing, and a second clear deletes what the first could not.

Inheritors

Types

Link copied to clipboard
data class Failure(val cause: Throwable) : MetricWriteResult

The call did not end durable. A merge's cause is the store's refusal of the write, whose merged state stays in memory, or a MetricKindUnreadException, in which case nothing was merged. A clear's is the refused delete; memory is cleared either way.

Link copied to clipboard

The merge or the clear is durably written.