tracing

package
v0.0.0-...-c510420 Latest Latest
Warning

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

Go to latest
Published: Apr 4, 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) Error

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

Error implements the Logger interface.

func (TracingLogger) Info

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

Info implements the Logger interface.

func (TracingLogger) V

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

V implements the Logger interface.

func (TracingLogger) WithName

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

WithName implements the Logger interface.

func (TracingLogger) WithValues

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

WithValues implements the Logger interface.

Jump to

Keyboard shortcuts

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