Alerting: Log rule evaluation error in scheduler (#91585)

This commit is contained in:
Yuri Tseretyan 2024-08-06 12:27:02 -04:00 committed by GitHub
parent f4073e6b8e
commit ee78bb653f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -414,6 +414,7 @@ func (a *alertRule) evaluate(ctx context.Context, e *Evaluation, span trace.Span
err = results.Error()
}
logger.Debug("Alert rule evaluated", "error", err, "duration", dur)
span.SetStatus(codes.Error, "rule evaluation failed")
span.RecordError(err)
} else {