MetricOverflowException
Why a WarpMetricExporter.record was refused: an update would carry the series key's total over every replica past Long.MAX_VALUE. The total is what the OTLP bridge exports, so a series past it is one the bridge skips. The narrower case, this replica's own slot passing Long.MAX_VALUE, is part of it: a wrapped slot would be negative, and a counter's merge, a max, would drop it, so the update would be lost everywhere with nothing to say so. It arrives as a MetricExportResult.Refused, and the batch that carried it applied nothing.
Which kind of series key names is the subclass: MetricSumOverflowException for a sum, MetricHistogramOverflowException for a histogram. A sum and a histogram can share a MetricKey, so a caller leaving the series out of a retry needs both. Only the exporter constructs one; a consumer only receives it.