Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( LogProcessorRegistryFrom = contextx.From[tCtxLogProcessorRegistry, LogProcessorRegistry] MustLogProcessorRegistry = contextx.Must[tCtxLogProcessorRegistry, LogProcessorRegistry] WithLogProcessorRegistry = contextx.With[tCtxLogProcessorRegistry, LogProcessorRegistry] CarryLogProcessorRegistry = contextx.Carry[tCtxLogProcessorRegistry, LogProcessorRegistry] )
Functions ¶
This section is empty.
Types ¶
type LogProcessorRegistry ¶
type LogProcessorRegistry interface {
RegisterLogProcessor(p otelsdklogger.Processor)
}
type Otel ¶
type Otel struct {
LogLevel logx.LogLevel `env:",omitempty"`
LogFormat logx.LogFormat `env:",omitempty"`
TraceCollectorEndpoint string `env:",omitempty"`
MetricCollectorEndpoint string `env:",omitempty"`
MetricCollectInterval types.Duration `env:",omitempty"`
// contains filtered or unexported fields
}
func (*Otel) SetDefault ¶
func (o *Otel) SetDefault()
Click to show internal directories.
Click to hide internal directories.