app/vmselect/promql: measure the time required for calculating the aggregate function from the prepared source time series

This commit is contained in:
Aliaksandr Valialkin 2023-02-23 20:05:11 -08:00
parent dce8afa4c4
commit 8efa9159cf
No known key found for this signature in database
GPG Key ID: A72BEC6CD3D0DED1

View File

@ -390,7 +390,9 @@ func evalAggrFunc(qt *querytracer.Tracer, ec *EvalConfig, ae *metricsql.AggrFunc
args: args,
ec: ec,
}
qtChild := qt.NewChild("eval %s", ae.Name)
rv, err := af(afa)
qtChild.Done()
if err != nil {
return nil, fmt.Errorf(`cannot evaluate %q: %w`, ae.AppendString(nil), err)
}