MetricPoint
A single metric data point, rendered from a WarpMetricExporter CRDT (via MetricCatalog) into the shape OTLP puts on the wire. The bridge produces these; an OtlpEdge serializes them — the edge never reaches into the CRDTs directly.
valueHash is over the OTLP value fields only (not the observation time), so a re-render of an unchanged series produces the same hash. Once that hash is in MetricDigest, the bridge skips it; an advanced value is eligible for sending. Failed delivery or digest persistence can cause retries, so this is not an exactly-once delivery guarantee. Nor does it deduplicate repeated increments.
The five variants mirror the five kinds a MetricCatalog holds: a long cumulative sum (Sum), a double-precision cumulative sum (DoubleSum), a last-writer-wins gauge (Gauge), a distinct-count estimate (Cardinality), and a quantile sketch (ExponentialHistogram).
Inheritors
Types
A distinct-count estimate rendered as a Gauge-shaped OTLP point.
A quantile sketch rendered as an OTLP ExponentialHistogramDataPoint (cumulative temporality — the backing us.tractat.kuilt.crdt.DDSketch is grow-only).