pub struct FloatHistogramSample<'a> {Show 14 fields
pub ts: i64,
pub st: i64,
pub count: f64,
pub zero_count: f64,
pub sum: f64,
pub schema: i32,
pub zero_threshold: f64,
pub pos_spans: &'a [Span],
pub neg_spans: &'a [Span],
pub pos_buckets: &'a [f64],
pub neg_buckets: &'a [f64],
pub custom_values: &'a [f64],
pub chunk_reset_hint: CounterResetHint,
pub counter_reset_hint: CounterResetHint,
}Expand description
One decoded float native histogram sample.
All bucket slices borrow from the decoder’s scratch buffers, so the sample
is only valid for the duration of SampleSink::push_float_histogram.
Copy the values out if you need to keep them.
Fields§
§ts: i64Sample timestamp, in milliseconds since the Unix epoch.
st: i64Start timestamp (ST encoding only), 0 otherwise.
count: f64Total number of observations.
zero_count: f64Observations in the zero bucket.
sum: f64Sum of all observed values.
schema: i32Bucket schema; the resolution of the exponential buckets.
zero_threshold: f64Width of the zero bucket ([-zero_threshold, +zero_threshold]).
pos_spans: &'a [Span]Runs of populated positive buckets.
neg_spans: &'a [Span]Runs of populated negative buckets.
pos_buckets: &'a [f64]Absolute bucket counts (deltas already accumulated).
neg_buckets: &'a [f64]Absolute negative bucket counts (deltas already accumulated).
custom_values: &'a [f64]Custom bucket bounds when the histogram uses them instead of a schema.
chunk_reset_hint: CounterResetHint2-bit counter-reset header of the chunk.
counter_reset_hint: CounterResetHintPer-sample counter-reset hint, derived from the chunk header.