ztrace

package
v2.0.7 Latest Latest
Warning

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

Go to latest
Published: Jun 23, 2022 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrNotRecording = errors.New("span is not recording")
)

Functions

func New

func New(span trace.Span) zapcore.Core

Types

type Core

type Core struct {
	trace.Span
	// contains filtered or unexported fields
}

func (*Core) Check

func (Core) Enabled

func (c Core) Enabled(level zapcore.Level) bool

func (Core) Sync

func (c Core) Sync() error

func (*Core) With

func (c *Core) With(fields []zapcore.Field) zapcore.Core

func (*Core) Write

func (c *Core) Write(entry zapcore.Entry, fields []zapcore.Field) error

Jump to

Keyboard shortcuts

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