Documentation ¶
Index ¶
- Constants
- Variables
- func NamedTrace(ctx context.Context, spanName string, kind trace.SpanKind, ...) (context.Context, trace.Span)
- func Trace(ctx context.Context, kind trace.SpanKind) (context.Context, trace.Span)
- type LoggingHook
- type OTelHook
- type SlogLogrAdapter
- func (a *SlogLogrAdapter) Enabled(level int) bool
- func (a *SlogLogrAdapter) Error(err error, msg string, keysAndValues ...interface{})
- func (a *SlogLogrAdapter) Info(level int, msg string, keysAndValues ...interface{})
- func (a *SlogLogrAdapter) Init(_ logr.RuntimeInfo)
- func (a *SlogLogrAdapter) WithName(_ string) logr.LogSink
- func (a *SlogLogrAdapter) WithValues(keysAndValues ...interface{}) logr.LogSink
Constants ¶
View Source
const (
LevelTrace slog.Level = -8
)
Variables ¶
View Source
var Disabled bool
View Source
var Tracer ttt.Tracer
Functions ¶
func NamedTrace ¶
Types ¶
type LoggingHook ¶
type LoggingHook struct { DisableJSONLogging bool `desc:"Disable JSON logging."` LogLevel string `required:"true" desc:"Log level, must be one of: trace,debug,info,warn,error,fatal,panic"` }
LoggingHook is a command hook for configuring logging.
type OTelHook ¶
type OTelHook struct { ServiceName string // contains filtered or unexported fields }
type SlogLogrAdapter ¶
type SlogLogrAdapter struct {
// contains filtered or unexported fields
}
func (*SlogLogrAdapter) Enabled ¶
func (a *SlogLogrAdapter) Enabled(level int) bool
func (*SlogLogrAdapter) Error ¶
func (a *SlogLogrAdapter) Error(err error, msg string, keysAndValues ...interface{})
func (*SlogLogrAdapter) Info ¶
func (a *SlogLogrAdapter) Info(level int, msg string, keysAndValues ...interface{})
func (*SlogLogrAdapter) Init ¶
func (a *SlogLogrAdapter) Init(_ logr.RuntimeInfo)
func (*SlogLogrAdapter) WithValues ¶
func (a *SlogLogrAdapter) WithValues(keysAndValues ...interface{}) logr.LogSink
Click to show internal directories.
Click to hide internal directories.