From acb051b3141da5ff668a370e6c2989ee056f16ce Mon Sep 17 00:00:00 2001 From: Steve Simpson Date: Thu, 26 Sep 2024 23:27:40 +0200 Subject: [PATCH] Alerting: Fix logging for failed annotations writing. (#93856) --- pkg/services/ngalert/state/historian/annotation.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/services/ngalert/state/historian/annotation.go b/pkg/services/ngalert/state/historian/annotation.go index 14c7f97b251..d2353ec42d8 100644 --- a/pkg/services/ngalert/state/historian/annotation.go +++ b/pkg/services/ngalert/state/historian/annotation.go @@ -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) 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 return }