tracing

package
v1.6.0 Latest Latest
Warning

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

Go to latest
Published: Jul 30, 2018 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CopySpanFromContext

func CopySpanFromContext(ctx context.Context) context.Context

func Init

func Init(serviceName string, logger srv.LowLevelLogger, section conf.Section) (opentracing.Tracer, io.Closer, error)

Init creates a new instance of Jaeger tracer.

Types

type TraceLogger

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

TraceLogger is an adapter from LowLevelLogger to jaeger-lib Logger interface.

func NewTraceLogger

func NewTraceLogger(logger srv.LowLevelLogger) *TraceLogger

NewLogger creates a new Sugared Logger.

func (*TraceLogger) Error

func (l *TraceLogger) Error(msg string)

Error logs a message at error priority

func (*TraceLogger) Infof

func (l *TraceLogger) Infof(msg string, args ...interface{})

Infof logs a message at info priority

Jump to

Keyboard shortcuts

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