diff --git a/pkg/streamingpromql/operators/functions/native_histograms.go b/pkg/streamingpromql/operators/functions/native_histograms.go index 65db6f158c7..bb3fab27670 100644 --- a/pkg/streamingpromql/operators/functions/native_histograms.go +++ b/pkg/streamingpromql/operators/functions/native_histograms.go @@ -89,9 +89,9 @@ func HistogramFraction(seriesData types.InstantVectorSeriesData, scalarArgsData return data, nil } +// HistogramStdDevStdVar returns either the standard deviation, or standard variance of a native histogram. +// Float values are ignored. func HistogramStdDevStdVar(isStdDev bool) InstantVectorSeriesFunction { - // returns either the standard deviation, or standard variance of a native histogram. - // Float values are ignored. return func(seriesData types.InstantVectorSeriesData, _ []types.ScalarData, _ types.QueryTimeRange, memoryConsumptionTracker *limiting.MemoryConsumptionTracker) (types.InstantVectorSeriesData, error) { fPoints, err := types.FPointSlicePool.Get(len(seriesData.Histograms), memoryConsumptionTracker) if err != nil {