Back to

Package zap

Latest Go to latest

The latest major version is .

Published: Sep 5, 2017 | License: MIT | Module:


func Trace

func Trace(ctx context.Context) zapcore.Field

Trace creates a field that extracts tracing information from a context and includes it under the "trace" key.

Because the opentracing APIs don't expose this information, the returned zap.Field is a no-op for contexts that don't contain a span or contain a non-Jaeger span.

type Logger

type Logger struct {
	// contains filtered or unexported fields

Logger is an adapter from zap Logger to jaeger-lib Logger.

func NewLogger

func NewLogger(logger *zap.Logger) *Logger

NewLogger creates a new Logger.

func (*Logger) Error

func (l *Logger) Error(msg string)

Error logs a message at error priority

func (*Logger) Infof

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

Infof logs a message at info priority

Package Files

Documentation was rendered with GOOS=linux and GOARCH=amd64.

Jump to identifier

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to identifier