Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MetricViews ¶
MetricViews return metric views for Kafka receiver.
func NewFactory ¶
func NewFactory(options ...FactoryOption) component.ReceiverFactory
NewFactory creates Kafka receiver factory.
Types ¶
type Config ¶
type Config struct { configmodels.ReceiverSettings `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 consume from (default "otlp_spans") Topic string `mapstructure:"topic"` // Encoding of the messages (default "otlp_proto") Encoding string `mapstructure:"encoding"` // The consumer group that receiver will be consuming messages from (default "otel-collector") GroupID string `mapstructure:"group_id"` // The consumer client ID that receiver will use (default "otel-collector") ClientID string `mapstructure:"client_id"` // Metadata is the namespace for metadata management properties used by the // Client, and shared by the Producer/Consumer. Metadata kafkaexporter.Metadata `mapstructure:"metadata"` Authentication kafkaexporter.Authentication `mapstructure:"auth"` }
Config defines configuration for Kafka receiver.
type FactoryOption ¶
type FactoryOption func(factory *kafkaReceiverFactory)
FactoryOption applies changes to kafkaExporterFactory.
func WithAddUnmarshallers ¶
func WithAddUnmarshallers(encodingMarshaller map[string]Unmarshaller) FactoryOption
WithAddUnmarshallers adds marshallers.
Click to show internal directories.
Click to hide internal directories.