Documentation ¶
Index ¶
- Constants
- func GeneratePrivateKey(clientId, clientSecret, issuerUrl string) (string, error)
- func NewFactory(options ...FactoryOption) receiver.Factory
- type Athenz
- type Authentication
- type Config
- type FactoryOption
- type LogsUnmarshaler
- type MetricsUnmarshaler
- type OAuth2
- type TLS
- type Token
- type TracesUnmarshaler
Constants ¶
View Source
const ( Type = "fkpulsar" MetricsStability = component.StabilityLevelAlpha TracesStability = component.StabilityLevelAlpha LogsStability = component.StabilityLevelAlpha )
Variables ¶
This section is empty.
Functions ¶
func GeneratePrivateKey ¶
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 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.
func WithLogsUnmarshalers ¶
func WithLogsUnmarshalers(logsUnmarshalers ...LogsUnmarshaler) FactoryOption
WithLogsUnmarshalers adds LogsUnmarshalers.
func WithMetricsUnmarshalers ¶
func WithMetricsUnmarshalers(metricsUnmarshalers ...MetricsUnmarshaler) FactoryOption
WithMetricsUnmarshalers adds MetricsUnmarshalers.
func WithTracesUnmarshalers ¶
func WithTracesUnmarshalers(tracesUnmarshalers ...TracesUnmarshaler) FactoryOption
WithTracesUnmarshalers adds Unmarshalers.
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"`
}
Click to show internal directories.
Click to hide internal directories.