Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewFactory ¶
func NewFactory() component.ExporterFactory
NewFactory creates Kafka exporter factory.
Types ¶
type Config ¶
type Config struct { configmodels.ExporterSettings `mapstructure:",squash"` // The list of kafka brokers (default localhost:9092) Brokers []string `mapstructure:"brokers"` // Kafka protocol version ProtocolVersion string `mapstructure:"protocol_version"` // The name of the kafka topic to export to (default "otlp_spans") Topic string `mapstructure:"topic"` // Metadata is the namespace for metadata management properties used by the // Client, and shared by the Producer/Consumer. Metadata Metadata `mapstructure:"metadata"` }
Config defines configuration for Kafka exporter.
type Metadata ¶
type Metadata struct { // Whether to maintain a full set of metadata for all topics, or just // the minimal set that has been necessary so far. The full set is simpler // and usually more convenient, but can take up a substantial amount of // memory if you have many topics and partitions. Defaults to true. Full bool `mapstructure:"full"` // Retry configuration for metadata. // This configuration is useful to avoid race conditions when broker // is starting at the same time as collector. Retry MetadataRetry `mapstructure:"retry"` }
Metadata defines configuration for retrieving metadata from the broker.
type MetadataRetry ¶
type MetadataRetry struct { // The total number of times to retry a metadata request when the // cluster is in the middle of a leader election or at startup (default 3). Max int `mapstructure:"max"` // How long to wait for leader election to occur before retrying // (default 250ms). Similar to the JVM's `retry.backoff.ms`. Backoff time.Duration `mapstructure:"backoff"` }
MetadataRetry defines retry configuration for Metadata.
Click to show internal directories.
Click to hide internal directories.