Alerting: Fix logging for failed annotations writing. (#93856)

This commit is contained in:
Steve Simpson 2024-09-26 23:27:40 +02:00 committed by GitHub
parent a847608061
commit acb051b314
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -99,7 +99,7 @@ func (h *AnnotationBackend) Record(ctx context.Context, rule history_model.RuleM
err := h.store.Save(ctx, panel, annotations, rule.OrgID, logger) err := h.store.Save(ctx, panel, annotations, rule.OrgID, logger)
if err != nil { if err != nil {
logger.Error("Failed to save history batch", len(annotations), "err", err) logger.Error("Failed to save history batch", "samples", len(annotations), "err", err)
errCh <- err errCh <- err
return return
} }