refactor(logging): log with the caller's context so records carry trace ids

This commit is contained in:
sam committed 2026-10-25 23:30:01 +11:00
1 parent 0611e00330
commit 656feab2a4
118 files changed
+512 -511

No files matched your search

+1 -1
View File
@@ -169,7 +169,7 @@ func (s *EDA) InsertCapture(ctx context.Context, c storecontract.CapturedEvent,
return "", fmt.Errorf("edastore: insert capture: %w", err)
}
if err := s.pruneCaptures(ctx, id, retention, maxEvents); err != nil {
s.log.Warn("capture stored but not pruned", "capture", id, "err", err)
s.log.WarnContext(ctx, "capture stored but not pruned", "capture", id, "err", err)
}
return id, nil
}