Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Use snapshot to prevent race condition
Co-authored-by: skartikey <s.kartikey@gmail.com>
  • Loading branch information
srebhan and skartikey authored Feb 26, 2026
commit 4c1298030b585bcfe77c092f73dced986cb60bcb
2 changes: 1 addition & 1 deletion plugins/outputs/heartbeat/heartbeat.go
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ func (h *Heartbeat) send() error {
h.message.ConfigSources = &sources
case "logs":
var entries []logEntry
if h.Logs.Limit == 0 || h.Logs.Limit > uint64(len(h.logEvents)) {
if h.Logs.Limit == 0 || h.Logs.Limit > uint64(len(logEvents)) {
entries = getLogEntriesUnlimited(logEvents)
} else {
entries = getLogEntriesLimited(logEvents, int(h.Logs.Limit))
Expand Down
Loading