MCPcopy
hub / github.com/prometheus/prometheus / CustomBucketsFloatHistogramSamples

Method CustomBucketsFloatHistogramSamples

tsdb/record/record.go:1304–1309  ·  view source on GitHub ↗

CustomBucketsFloatHistogramSamples appends the encoded custom-bucket float histogram samples to b and returns the resulting slice.

(histograms []RefFloatHistogramSample, b []byte)

Source from the content-addressed store, hash-verified

1302// CustomBucketsFloatHistogramSamples appends the encoded custom-bucket float
1303// histogram samples to b and returns the resulting slice.
1304func (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
1311func (*Encoder) customBucketsFloatHistogramSamplesV1(histograms []RefFloatHistogramSample, b []byte) []byte {
1312 buf := encoding.Encbuf{B: b}

Callers 10

logMethod · 0.95
TestRecord_EncodeDecodeFunction · 0.95
TestCheckpointFunction · 0.95
logMethod · 0.95
collectOOORecordsMethod · 0.80
TestWatcher_TailFunction · 0.80
CheckpointFunction · 0.80