Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewFactory ¶
func NewFactory(options ...FactoryOption) receiver.Factory
NewFactory creates Pulsar receiver factory.
Types ¶
type Athenz ¶
type Athenz struct {
ProviderDomain string `mapstructure:"provider_domain"`
TenantDomain string `mapstructure:"tenant_domain"`
TenantService string `mapstructure:"tenant_service"`
PrivateKey configopaque.String `mapstructure:"private_key"`
KeyID string `mapstructure:"key_id"`
PrincipalHeader string `mapstructure:"principal_header"`
ZtsURL string `mapstructure:"zts_url"`
}
type Authentication ¶
type Authentication struct {
TLS configoptional.Optional[TLS] `mapstructure:"tls"`
Token configoptional.Optional[Token] `mapstructure:"token"`
Athenz configoptional.Optional[Athenz] `mapstructure:"athenz"`
OAuth2 configoptional.Optional[OAuth2] `mapstructure:"oauth2"`
// contains filtered or unexported fields
}
type Config ¶
type Config struct {
// Configure the service URL for the Pulsar service.
Endpoint string `mapstructure:"endpoint"`
// The topic of pulsar to consume logs,metrics,traces. (default = "otlp_traces" for traces,
// "otlp_metrics" for metrics, "otlp_logs" for logs)
Topic string `mapstructure:"topic"`
// The Subscription that receiver will be consuming messages from (default "otlp_subscription")
Subscription string `mapstructure:"subscription"`
// Encoding of the messages (default "otlp_proto")
Encoding string `mapstructure:"encoding"`
// Name specifies the consumer name.
ConsumerName string `mapstructure:"consumer_name"`
// Set the path to the trusted TLS certificate file
TLSTrustCertsFilePath string `mapstructure:"tls_trust_certs_file_path"`
// Configure whether the Pulsar client accept untrusted TLS certificate from broker (default: false)
TLSAllowInsecureConnection bool `mapstructure:"tls_allow_insecure_connection"`
Authentication Authentication `mapstructure:"auth"`
}
type FactoryOption ¶
type FactoryOption func(factory *pulsarReceiverFactory)
FactoryOption applies changes to PulsarExporterFactory.
type LogsUnmarshaler ¶
type LogsUnmarshaler interface {
// Unmarshal deserializes the message body into tracesConsumer.
Unmarshal([]byte) (plog.Logs, error)
// Encoding of the serialized messages.
Encoding() string
}
LogsUnmarshaler deserializes the message body.
type MetricsUnmarshaler ¶
type MetricsUnmarshaler interface {
// Unmarshal deserializes the message body into tracesConsumer
Unmarshal([]byte) (pmetric.Metrics, error)
// Encoding of the serialized messages
Encoding() string
}
MetricsUnmarshaler deserializes the message body
type Token ¶
type Token struct {
Token configopaque.String `mapstructure:"token"`
// contains filtered or unexported fields
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.