mirror of
https://github.com/VictoriaMetrics/VictoriaMetrics.git
synced 2024-11-21 14:44:00 +00:00
app/vmselect/promql: measure the time required for calculating the aggregate function from the prepared source time series
This commit is contained in:
parent
8b7a828c65
commit
c87c7d1e29
1 changed files with 2 additions and 0 deletions
|
@ -373,7 +373,9 @@ func evalAggrFunc(qt *querytracer.Tracer, ec *EvalConfig, ae *metricsql.AggrFunc
|
||||||
args: args,
|
args: args,
|
||||||
ec: ec,
|
ec: ec,
|
||||||
}
|
}
|
||||||
|
qtChild := qt.NewChild("eval %s", ae.Name)
|
||||||
rv, err := af(afa)
|
rv, err := af(afa)
|
||||||
|
qtChild.Done()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, fmt.Errorf(`cannot evaluate %q: %w`, ae.AppendString(nil), err)
|
return nil, fmt.Errorf(`cannot evaluate %q: %w`, ae.AppendString(nil), err)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue