Documentation ¶
Overview ¶
Package pulsarexporter exports trace data to Pulsar.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewFactory ¶
func NewFactory(options ...FactoryOption) component.ExporterFactory
NewFactory creates pulsar exporter factory.
Types ¶
type Config ¶
type Config struct { config.ExporterSettings `mapstructure:",squash"` // squash ensures fields are correctly decoded in embedded struct exporterhelper.TimeoutSettings `mapstructure:",squash"` // squash ensures fields are correctly decoded in embedded struct. exporterhelper.QueueSettings `mapstructure:"sending_queue"` exporterhelper.RetrySettings `mapstructure:"retry_on_failure"` //// The list of pulsar brokers (default localhost:9092) Brokers string `mapstructure:"brokers"` //// The name of the pulsar topic to export to (default otlp_spans for traces, otlp_metrics for metrics) Topic string `mapstructure:"topic"` // Encoding of messages (default "otlp_proto") Encoding string `mapstructure:"encoding"` // Metadata is the namespace for metadata management properties used by the // Client, and shared by the Producer/Consumer. Metadata Metadata `mapstructure:"metadata"` // Producer is the namespaces for producer properties used only by the Producer Producer Producer `mapstructure:"producer"` }
Config defines configuration for pulsar exporter.
type FactoryOption ¶
type FactoryOption func(factory *pulsarExporterFactory)
FactoryOption applies changes to pulsarExporterFactory.
type Metadata ¶
type Metadata struct { }
Metadata defines configuration for retrieving metadata from the broker.
type MetadataRetry ¶
type MetadataRetry struct { }
MetadataRetry defines retry configuration for Metadata.
type MetricsMarshaler ¶
type MetricsMarshaler interface { // Marshal serializes metrics into pulsar's ProducerMessage Marshal(metrics pmetric.Metrics) ([]*pulsar.ProducerMessage, error) // Encoding returns encoding name Encoding() string }
MetricsMarshaler marshals metrics into Message array
Click to show internal directories.
Click to hide internal directories.