heetch / felice

Felice is a nascent, opinionated Kafka library for Go, in Go
MIT License
20 stars 1 forks source link

Report metrics when HandleMessage returns an error #27

Open tealeg opened 5 years ago

tealeg commented 5 years ago

Curently we only report metrics when Consumer.handleMessages has called HandleMessage and it has returned a nil error. We need to also report metrics on cases where HandleMessage returns an error, as without this we can get stuck in a loop trying to process a bad message, and nobody would notice.