incrementSum

suspend fun incrementSum(key: MetricKey, by: Long = 1): MetricExportResult

Increment the cumulative sum for key by by on this replica. Returns MetricExportResult.Success after the durable write.

No double-count under merge-retry. Calling mergeSum with the same remote snapshot more than once is always safe — GCounter's element-wise max join is idempotent. Sequential calls to incrementSum each do add to the total, which is the correct cumulative semantics.