CustomBucketsFloatHistogramSamples appends the encoded custom-bucket float histogram samples to b and returns the resulting slice.
(histograms []RefFloatHistogramSample, b []byte)
| 1302 | // CustomBucketsFloatHistogramSamples appends the encoded custom-bucket float |
| 1303 | // histogram samples to b and returns the resulting slice. |
| 1304 | func (e *Encoder) CustomBucketsFloatHistogramSamples(histograms []RefFloatHistogramSample, b []byte) []byte { |
| 1305 | if e.EnableSTStorage { |
| 1306 | return e.floatHistogramSamplesV2(histograms, b) |
| 1307 | } |
| 1308 | return e.customBucketsFloatHistogramSamplesV1(histograms, b) |
| 1309 | } |
| 1310 | |
| 1311 | func (*Encoder) customBucketsFloatHistogramSamplesV1(histograms []RefFloatHistogramSample, b []byte) []byte { |
| 1312 | buf := encoding.Encbuf{B: b} |