Alerting: Log number of dimensions instead of all evaluation results (#92733)

This commit is contained in:
Alexander Akhmetov 2024-08-30 12:35:02 +02:00 committed by GitHub
parent a0e237dacf
commit 152d3540db
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -426,7 +426,7 @@ func (a *alertRule) evaluate(ctx context.Context, e *Evaluation, span trace.Span
span.SetStatus(codes.Error, "rule evaluation failed")
span.RecordError(err)
} else {
logger.Debug("Alert rule evaluated", "results", results, "duration", dur)
logger.Debug("Alert rule evaluated", "results", len(results), "duration", dur)
span.AddEvent("rule evaluated", trace.WithAttributes(
attribute.Int64("results", int64(len(results))),
))