Documentation
¶
Overview ¶
Package otelx provides configuration options for various OpenTelemetry integrations.
Index ¶
Constants ¶
View Source
const ( StdOutProvider = "stdout" OTLPHTTPProvider = "otlphttp" OTLPGRPCProvider = "otlpgrpc" )
Variables ¶
View Source
var ( ErrUnknownProvider = errors.New("unknown provider") ErrInvalidConfig = errors.New("failed parsing trace config(s)") )
Functions ¶
Types ¶
type OTLP ¶
type OTLP struct {
Endpoint string `yaml:"endpoint" split_words:"true" default:"localhost:4317"`
Insecure bool `yaml:"insecure" split_words:"true" default:"true"`
Certificate string `yaml:"certificate" split_words:"true" default:""`
Headers []string `yaml:"headers" split_words:"true" default:""`
Compression string `yaml:"compression" split_words:"true" default:""`
Timeout time.Duration `yaml:"timeout" split_words:"true" default:"10s"`
}
Click to show internal directories.
Click to hide internal directories.