tracing

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type TracingLogger

type TracingLogger struct {
	logr.Logger
	trace.Span
}

TracingLogger is a logger with tracing support. It captures all the logs and adds them into a tracing span.

func NewLogger

func NewLogger(logger logr.Logger, span trace.Span) *TracingLogger

NewLogger creates and returns a TracingLogger.

func (TracingLogger) Enabled

func (t TracingLogger) Enabled(level int) bool

Enabled implements the Logger interface.

func (TracingLogger) Error

func (t TracingLogger) Error(err error, msg string, keysAndValues ...interface{})

Error implements the Logger interface.

func (TracingLogger) Info

func (t TracingLogger) Info(level int, msg string, keysAndValues ...interface{})

Info implements the Logger interface.

func (TracingLogger) Init

func (t TracingLogger) Init(info logr.RuntimeInfo)

Init calls sink's Init.

func (TracingLogger) V

func (t TracingLogger) V(level int) logr.LogSink

V implements the Logger interface.

func (TracingLogger) WithName

func (t TracingLogger) WithName(name string) logr.LogSink

WithName implements the Logger interface.

func (TracingLogger) WithValues

func (t TracingLogger) WithValues(keysAndValues ...interface{}) logr.LogSink

WithValues implements the Logger interface.

Jump to

Keyboard shortcuts

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