observe

fun observe(replica: ReplicaId, timestamp: Long, value: Double): Gauge

Record that replica observed value at timestamp. Returns a new state carrying just this tagged observation; absorb it with piece (gauge = gauge.piece(gauge.observe(replica, ts, v))) so an older-timestamp observation never overwrites a newer one.

The (replica, timestamp) pair must uniquely identify this observation — see LWWRegister.set for the tag-uniqueness contract.

Throws

if value is NaN or infinite.