mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Alerting: Log rule evaluation error in scheduler (#91585)
This commit is contained in:
parent
f4073e6b8e
commit
ee78bb653f
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user