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 8b7a828c65
commit c87c7d1e29
No known key found for this signature in database
GPG key ID: A72BEC6CD3D0DED1

View file

@ -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)
} }