Skip to main content
Version: v1.23.0

Kafka Exporter

The Kafka exporter produces messages to a Kafka topic for each event generated.

Configuration example

ffclient.Config{ 
// ...
DataExporter: ffclient.DataExporter{
// ...
Exporter: &kafkaexporter.Exporter{
Settings: kafkaexporter.Settings{
Topic: "go-feature-flag-events",
Addresses: []string{"cluster1", "cluster2"},
},
},
},
// ...
}

Configuration fields

FieldDescription
Topic Name of the topic on which to publish messages
Addresses The list of addressed for the Kafka boostrap servers
Config (Optional) An instance of *sarama.Config that holds additional settings for the producer, such as timeouts, TLS settings, etc. If not populated a default will be used by calling sarama.NewConfig()

Check the godoc for full details.

Get the latest GO Feature Flag updates