From 8a35377cf39f9817bd6a0865d03440a0d2581e9e 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 56a9b189f..1c2fc43a2 100644 --- a/app/vmselect/promql/eval.go +++ b/app/vmselect/promql/eval.go @@ -669,9 +669,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) {