Documentation ¶
Index ¶
- Constants
- type TelemetryLogger
- func (t *TelemetryLogger) Check(lvl zapcore.Level, msg string) *zapcore.CheckedEntry
- func (t *TelemetryLogger) Debug(msg string, fields ...zap.Field)
- func (t *TelemetryLogger) Debugf(template string, args ...interface{})
- func (t *TelemetryLogger) Error(msg string, fields ...zap.Field)
- func (t *TelemetryLogger) Errorf(template string, args ...interface{})
- func (t *TelemetryLogger) Info(msg string, fields ...zap.Field)
- func (t *TelemetryLogger) Infof(template string, args ...interface{})
- func (t *TelemetryLogger) Panic(msg string, fields ...zap.Field)
- func (t *TelemetryLogger) Panicf(template string, args ...interface{})
- func (t *TelemetryLogger) Warn(msg string, fields ...zap.Field)
- func (t *TelemetryLogger) Warnf(template string, args ...interface{})
- type TelemetryManager
- type TelemetryOption
- type TelemetryTools
Constants ¶
View Source
const ( ObservabilityConfig = "observability" LogKey = "logger" MetricKey = "opentelemetry" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type TelemetryLogger ¶
type TelemetryLogger struct { EnableDebug bool // contains filtered or unexported fields }
func (*TelemetryLogger) Check ¶
func (t *TelemetryLogger) Check(lvl zapcore.Level, msg string) *zapcore.CheckedEntry
func (*TelemetryLogger) Debugf ¶
func (t *TelemetryLogger) Debugf(template string, args ...interface{})
func (*TelemetryLogger) Errorf ¶
func (t *TelemetryLogger) Errorf(template string, args ...interface{})
func (*TelemetryLogger) Infof ¶
func (t *TelemetryLogger) Infof(template string, args ...interface{})
func (*TelemetryLogger) Panicf ¶
func (t *TelemetryLogger) Panicf(template string, args ...interface{})
func (*TelemetryLogger) Warnf ¶
func (t *TelemetryLogger) Warnf(template string, args ...interface{})
type TelemetryManager ¶
type TelemetryManager struct { MeterProvider metric.MeterProvider Logger *zap.Logger Selector []string }
func NewTelemetryManager ¶
func NewTelemetryManager() *TelemetryManager
func (*TelemetryManager) ConstructConfig ¶
func (t *TelemetryManager) ConstructConfig(viper *viper.Viper)
func (*TelemetryManager) GetGlobalTelemetryTools ¶
func (t *TelemetryManager) GetGlobalTelemetryTools() *TelemetryTools
func (*TelemetryManager) GetTelemetryTools ¶
func (t *TelemetryManager) GetTelemetryTools(component string) *TelemetryTools
func (*TelemetryManager) SelectorOption ¶
func (t *TelemetryManager) SelectorOption(component string) TelemetryOption
type TelemetryOption ¶
type TelemetryOption func(*TelemetryTools)
func WithDebug ¶
func WithDebug(enableDebug bool) TelemetryOption
type TelemetryTools ¶
type TelemetryTools struct { MeterProvider metric.MeterProvider Logger *TelemetryLogger }
func NewDefaultTelemetryTools ¶
func NewDefaultTelemetryTools() *TelemetryTools
func (*TelemetryTools) GetZapLogger ¶
func (t *TelemetryTools) GetZapLogger() *zap.Logger
Click to show internal directories.
Click to hide internal directories.