Signed-off-by: Owen Williams <owen.williams@grafana.com>
This commit is contained in:
Owen Williams 2026-04-14 09:39:35 -04:00
parent dac4b846f8
commit f16d01d894
No known key found for this signature in database
GPG Key ID: 711C61A216D34A69

View File

@ -600,8 +600,6 @@ func (d *Decoder) histogramSamplesV2(dec *encoding.Decbuf, histograms []RefHisto
Ref: firstRef,
ST: firstST,
}
} else {
prev = &histograms[len(histograms)-1]
}
ref := int64(prev.Ref) + dec.Varint64()
@ -636,7 +634,7 @@ func (d *Decoder) histogramSamplesV2(dec *encoding.Decbuf, histograms []RefHisto
return nil, fmt.Errorf("error reducing resolution of histogram #%d: %w", len(histograms)+1, err)
}
}
prev = &rh
histograms = append(histograms, rh)
}
@ -779,8 +777,6 @@ func (d *Decoder) floatHistogramSamplesV2(dec *encoding.Decbuf, histograms []Ref
Ref: firstRef,
ST: firstST,
}
} else {
prev = &histograms[len(histograms)-1]
}
ref := int64(prev.Ref) + dec.Varint64()
@ -816,6 +812,7 @@ func (d *Decoder) floatHistogramSamplesV2(dec *encoding.Decbuf, histograms []Ref
}
}
prev = &rfh
histograms = append(histograms, rfh)
}