Skip to main content

record_histogram_flavor_warning

Function record_histogram_flavor_warning 

Source
fn record_histogram_flavor_warning(
    collector: Option<&PromqlAnnotationCollector>,
    function: RangeFunction,
    histograms: &[(i64, FloatHistogram)],
)
Expand description

The info a rate/increase/delta window owes when adjacent histograms carry different custom bucket bounds and the fold has to reconcile them.

The check compares bounds; it does not add the pair. The fold that follows does that work, and repeating it here would double the histogram arithmetic of every window. This is the same per-pair check the existing planner’s counter UDF makes.