mergeHistogram
Merge a remote DDSketch snapshot into this exporter's histogram for key.
Idempotent and lossless: the merged sketch equals the sketch of the combined measurement stream. Returns MetricWriteResult.Success after the durable write.
Not refused when the join carries the total past Long.MAX_VALUE. record refuses an update that would (#3403), but a merge is a lattice join: refusing it would leave this replica's sketch apart from the peer's for good, and the peer's own sketch, and every other replica that joins it, would still hold the total. So the join is kept, the OTLP bridge skips the series with a WARN naming it, and every later record update to it is refused.
Throws
if remote's configuration — relative accuracy, minIndexedValue and maxIndexedValue — is not exactly histogramPrototype's. Every series here holds that configuration, which is what lets histogramScale describe them all; a fresh key does not take a foreign one either.