PubSub Exporter
The PubSub exporter will collect the data and publish an event on the topic for each evaluation we receive.
Configuration example
ffclient.Config{
// ...
cfg, _ := config.LoadDefaultConfig(context.TODO())
DataExporter: ffclient.DataExporter{
// ...
Exporter: &pubsubexporter.Exporter{
ProjectID: "project-id", // required
Topic: "topic", // required
Options: []option.ClientOption{...},
PublishSettings: &pubsub.PublishSettings{...},
EnableMessageOrdering: true,
},
},
// ...
}
Configuration fields
Field | Description |
---|---|
ProjectID | ID of GCP project. You can find it in your GCP console |
Topic | Name of topic on which messages will be published |
Options | PubSub client options (see docs) |
PublishSettings | Topic related settings (see docs) |
EnableMessageOrdering | Enables delivery of ordered keys |
Check the godoc for full details.