Skip to content

Commit

Permalink
writer stats.Retries is a counter now (segmentio/kafka-go#1008)
Browse files Browse the repository at this point in the history
  • Loading branch information
mostafa committed Nov 3, 2022
1 parent 60c4e1e commit f3c80c6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion writer.go
Original file line number Diff line number Diff line change
Expand Up @@ -339,7 +339,7 @@ func (k *Kafka) reportWriterStats(currentStats kafkago.WriterStats) {
Metric: k.metrics.WriterRetries,
Tags: sampleTags,
},
Value: float64(currentStats.Retries.Avg),
Value: float64(currentStats.Retries),
Metadata: ctm.Metadata,
},
{
Expand Down

0 comments on commit f3c80c6

Please sign in to comment.