Skip to content

Commit bc0392e

Browse files
fix: metric tag name for message too large
1 parent 3ebb76d commit bc0392e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

publisher/kafka.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ func (pr *Kafka) ProduceBulk(events []*pb.Event, connGroup string, deliveryChann
7979
errors[order] = fmt.Errorf("%v %s", err, topic)
8080
metrics.Increment("kafka_error",
8181
fmt.Sprintf("type=%s,topic=%s,event_type=%s,conn_group=%s",
82-
"unknown_topic", topic, event.Type, connGroup))
82+
"message_too_large", topic, event.Type, connGroup))
8383
default:
8484
errors[order] = err
8585
logger.Errorf("produce to kafka failed due to: %v on topic : %s", err, topic)

0 commit comments

Comments
 (0)