Skip to content

Commit

Permalink
Changing the agent health payload for log events to be the buffered s…
Browse files Browse the repository at this point in the history
…ize of the request (#214)
  • Loading branch information
bryce-carey authored May 31, 2023
1 parent c1bd317 commit 5ee4ecd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/outputs/cloudwatchlogs/pusher.go
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@ func (p *pusher) send() {
input.SequenceToken = p.sequenceToken
opStartTime := time.Now()
output, err := p.Service.PutLogEvents(input)
p.agentInfo.RecordOpData(time.Since(opStartTime), len(input.LogEvents), err)
p.agentInfo.RecordOpData(time.Since(opStartTime), p.bufferredSize, err)
if err == nil {
if output.NextSequenceToken != nil {
p.sequenceToken = output.NextSequenceToken
Expand Down

0 comments on commit 5ee4ecd

Please sign in to comment.