Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Config ¶
type Config struct {
// Encoding is the log encoding.
// Possible values: json, console.
Encoding string `yaml:"encoding"`
// Level is the log level.
Level zapcore.Level `yaml:"level"`
// OTEL is the OTEL exporter configuration.
OTEL *OTELConfig `yaml:"otel_exporter"`
}
Config represents the logger configuration.
type OTELConfig ¶
type OTELConfig struct {
// Endpoint through which the OTEL exporter will send logs.
Endpoint string `yaml:"grpc_addr"`
}
OTELConfig represents the OTEL exporter configuration.
Click to show internal directories.
Click to hide internal directories.