Skip to content

Commit

Permalink
auto create topics in kafka producer (#678)
Browse files Browse the repository at this point in the history
  • Loading branch information
DmitryRomanov authored Sep 20, 2024
1 parent 201f324 commit b5386e3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions plugin/output/kafka/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ func NewClient(c *Config, l *zap.Logger) *kgo.Client {
kgo.MaxBufferedRecords(c.BatchSize_),
kgo.ProducerBatchMaxBytes(int32(c.MaxMessageBytes_)),
kgo.ProducerLinger(1 * time.Millisecond),
kgo.AllowAutoTopicCreation(),
}...)

switch c.Compression {
Expand Down

0 comments on commit b5386e3

Please sign in to comment.