Documentation
¶
Overview ¶
Package otlpreceiver receives data in OTLP format.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewFactory ¶
NewFactory creates a new OTLP receiver factory.
Types ¶
type Config ¶
type Config struct {
// Protocols is the configuration for the supported protocols, currently gRPC and HTTP (Proto and JSON).
Protocols `mapstructure:"protocols"`
// contains filtered or unexported fields
}
Config defines configuration for OTLP receiver.
type HTTPConfig ¶ added in v0.84.0
type HTTPConfig struct {
ServerConfig confighttp.ServerConfig `mapstructure:",squash"`
// The URL path to receive traces on. If omitted "/v1/traces" will be used.
TracesURLPath SanitizedURLPath `mapstructure:"traces_url_path,omitempty"`
// The URL path to receive metrics on. If omitted "/v1/metrics" will be used.
MetricsURLPath SanitizedURLPath `mapstructure:"metrics_url_path,omitempty"`
// The URL path to receive logs on. If omitted "/v1/logs" will be used.
LogsURLPath SanitizedURLPath `mapstructure:"logs_url_path,omitempty"`
// contains filtered or unexported fields
}
type Protocols ¶
type Protocols struct {
GRPC configoptional.Optional[configgrpc.ServerConfig] `mapstructure:"grpc"`
HTTP configoptional.Optional[HTTPConfig] `mapstructure:"http"`
// contains filtered or unexported fields
}
Protocols is the configuration for the supported protocols.
type SanitizedURLPath ¶ added in v0.127.0
type SanitizedURLPath string
func (*SanitizedURLPath) UnmarshalText ¶ added in v0.127.0
func (s *SanitizedURLPath) UnmarshalText(text []byte) error
Click to show internal directories.
Click to hide internal directories.