Expand description
Histogram / float histogram decoders, ported from
tsdb/chunkenc/histogram.go, float_histogram.go and
histogram_meta.go.
Integer histograms are decoded with exact u64/i64 arithmetic: the
observation counts and bucket counts are never routed through f64, which
would silently round everything above 2^53. Deltas are accumulated with
wrapping arithmetic because that is what Prometheus’ int64 code does; a
corrupt chunk can therefore never panic a debug build.
Functions§
- decode_
float - Decodes a float histogram chunk (optionally with ST).
- decode_
int - Decodes an integer histogram chunk (optionally with ST).