Skip to content

Commit

Permalink
docs(reporter/kafka): adds more information about tweaking the produc…
Browse files Browse the repository at this point in the history
…er. (#158)
  • Loading branch information
jcchavezs authored Dec 4, 2019
1 parent d761b19 commit 6c800c6
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion reporter/kafka/kafka.go
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,9 @@ func Logger(logger *log.Logger) ReporterOption {
}
}

// Producer sets the producer used to produce to Kafka.
// Producer sets the producer used to produce to Kafka. For tweaking
// the reporting settings (e.g. reporting timeout or authentication)
// check the sarama.Config struct.
func Producer(p sarama.AsyncProducer) ReporterOption {
return func(c *kafkaReporter) {
c.producer = p
Expand Down

0 comments on commit 6c800c6

Please sign in to comment.