From 31fc29599fb2e8c7a01e8d61c5baefb739ec207c Mon Sep 17 00:00:00 2001 From: Aliaksandr Valialkin Date: Tue, 10 Jan 2023 22:23:27 -0800 Subject: [PATCH] app/vmselect/promql: move the `eval function args in parallel` query trace outside the loop --- app/vmselect/promql/eval.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/vmselect/promql/eval.go b/app/vmselect/promql/eval.go index 1118de005..4f7b4af0c 100644 --- a/app/vmselect/promql/eval.go +++ b/app/vmselect/promql/eval.go @@ -652,9 +652,9 @@ func evalExprsInParallel(qt *querytracer.Tracer, ec *EvalConfig, es []metricsql. } rvs := make([][]*timeseries, len(es)) errs := make([]error, len(es)) + qt.Printf("eval function args in parallel") var wg sync.WaitGroup for i, e := range es { - qt.Printf("eval function args in parallel") wg.Add(1) qtChild := qt.NewChild("eval arg %d", i) go func(e metricsql.Expr, i int) {