FloatHistogramSamples encodes exponential float histogram samples.
(histograms []RefFloatHistogramSample, b []byte)
| 1225 | |
| 1226 | // FloatHistogramSamples encodes exponential float histogram samples. |
| 1227 | func (e *Encoder) FloatHistogramSamples(histograms []RefFloatHistogramSample, b []byte) ([]byte, []RefFloatHistogramSample) { |
| 1228 | if e.EnableSTStorage { |
| 1229 | return e.floatHistogramSamplesV2(histograms, b), nil |
| 1230 | } |
| 1231 | return e.floatHistogramSamplesV1(histograms, b) |
| 1232 | } |
| 1233 | |
| 1234 | func (*Encoder) floatHistogramSamplesV1(histograms []RefFloatHistogramSample, b []byte) ([]byte, []RefFloatHistogramSample) { |
| 1235 | buf := encoding.Encbuf{B: b} |