ztrace

package
v2.2.4 Latest Latest
Warning

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

Go to latest
Published: Jun 6, 2023 License: MIT Imports: 6 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(lvl zapcore.Level, 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(lvl 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