Skip to content

Commit 464e3a4

Browse files
author
Achille
authored
change writer retries stat from summary to counter (#1008)
* change writer retries stat from summary to counter * set retries metric type to counter
1 parent eb07fa4 commit 464e3a4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

writer.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -356,7 +356,7 @@ type WriterStats struct {
356356
BatchTime DurationStats `metric:"kafka.writer.batch.seconds"`
357357
WriteTime DurationStats `metric:"kafka.writer.write.seconds"`
358358
WaitTime DurationStats `metric:"kafka.writer.wait.seconds"`
359-
Retries SummaryStats `metric:"kafka.writer.retries.count"`
359+
Retries int64 `metric:"kafka.writer.retries.count" type:"counter"`
360360
BatchSize SummaryStats `metric:"kafka.writer.batch.size"`
361361
BatchBytes SummaryStats `metric:"kafka.writer.batch.bytes"`
362362

@@ -403,7 +403,7 @@ type writerStats struct {
403403
batchTime summary
404404
writeTime summary
405405
waitTime summary
406-
retries summary
406+
retries counter
407407
batchSize summary
408408
batchSizeBytes summary
409409
}

0 commit comments

Comments
 (0)