setGauge

suspend fun setGauge(key: MetricKey, value: Double, timestamp: Long): MetricExportResult

Record the current value of a gauge for key. The (timestamp, replica) pair determines which write wins across replicas — a higher timestamp always wins; equal timestamps break on ReplicaId lexicographic order.

Callers should use a monotonically increasing timestamp per replica to avoid silent drops. Returns MetricExportResult.Success after the durable write.