MCPcopy
hub / github.com/grafana/tempo / percentileHelper

Function percentileHelper

pkg/traceql/engine_metrics_test.go:903–909  ·  view source on GitHub ↗
(q float64, values ...float64)

Source from the content-addressed store, hash-verified

901}
902
903func percentileHelper(q float64, values ...float64) float64 {
904 h := Histogram{}
905 for _, v := range values {
906 h.Record(v, 1)
907 }
908 return Log2Quantile(q, h.Buckets)
909}
910
911func TestCountOverTime(t *testing.T) {
912 req := &tempopb.QueryRangeRequest{

Callers 1

TestQuantileOverTimeFunction · 0.85

Calls 2

RecordMethod · 0.95
Log2QuantileFunction · 0.85

Tested by

no test coverage detected