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

Function minOverTime

pkg/traceql/engine_metrics_functions.go:18–25  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

16}
17
18func minOverTime() func(curr float64, n float64) (res float64) {
19 return func(curr, n float64) (res float64) {
20 if math.IsNaN(curr) || n < curr {
21 return n
22 }
23 return curr
24 }
25}
26
27func maxOverTime() func(curr float64, n float64) (res float64) {
28 return func(curr, n float64) (res float64) {

Callers 2

NewOverTimeAggregatorFunction · 0.85
NewSimpleCombinerFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected