observability

package
v0.0.0-...-71653c3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 14, 2024 License: GPL-3.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

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 the command executor for the "devbot" command.

func (*LoggingHook) PreRun

func (c *LoggingHook) PreRun(_ context.Context) error

type OTelHook

type OTelHook struct {
	ServiceName         string
	MetricReaderFactory func(ctx context.Context) (metric.Reader, error)
	// contains filtered or unexported fields
}

func (*OTelHook) PostRun

func (h *OTelHook) PostRun(ctx context.Context, err error, _ command.ExitCode) error

func (*OTelHook) PreRun

func (h *OTelHook) PreRun(ctx context.Context) error

type ZeroLogLogrAdapter

type ZeroLogLogrAdapter struct {
	// contains filtered or unexported fields
}

func (*ZeroLogLogrAdapter) Enabled

func (a *ZeroLogLogrAdapter) Enabled(_ int) bool

func (*ZeroLogLogrAdapter) Error

func (a *ZeroLogLogrAdapter) Error(err error, msg string, keysAndValues ...interface{})

func (*ZeroLogLogrAdapter) Info

func (a *ZeroLogLogrAdapter) Info(level int, msg string, keysAndValues ...interface{})

func (*ZeroLogLogrAdapter) Init

func (a *ZeroLogLogrAdapter) Init(_ logr.RuntimeInfo)

func (*ZeroLogLogrAdapter) WithName

func (a *ZeroLogLogrAdapter) WithName(_ string) logr.LogSink

func (*ZeroLogLogrAdapter) WithValues

func (a *ZeroLogLogrAdapter) WithValues(keysAndValues ...interface{}) logr.LogSink

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL