Skip to content

Commit

Permalink
Include log on SendEvent endpoint (#23)
Browse files Browse the repository at this point in the history
  • Loading branch information
lmsilva-wls authored Dec 6, 2022
1 parent 7ca8c12 commit 85e980a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions sender/kafka.go
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,8 @@ func (k *KafkaSender) SendEvent(
topic := event.GetTopic()
partition, offset, err := k.producer.Produce(ctx, topic, buf.Bytes())
if err != nil {
l.WithError(err).
Error("error producing event to kafka")
metrics.APITopicsSubmission.WithLabelValues(topic, "false").Inc()
return err
}
Expand Down

0 comments on commit 85e980a

Please sign in to comment.