diff --git a/promql/engine.go b/promql/engine.go index 8dd76074c..b3ad14b3d 100644 --- a/promql/engine.go +++ b/promql/engine.go @@ -653,6 +653,7 @@ func (ng *Engine) execEvalStmt(ctx context.Context, query *query, s *parser.Eval query.sampleStats.InitStepTracking(start, start, 1) val, warnings, err := evaluator.Eval(s.Expr) + evalSpanTimer.Finish() if err != nil {