ztrace

package
v2.3.5 Latest Latest
Warning

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

Go to latest
Published: Dec 23, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(lvl zapcore.Level, span trace.Span, opts ...Option) 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

type Option added in v2.3.0

type Option interface {
	// contains filtered or unexported methods
}

func WithTrackLogFields added in v2.3.0

func WithTrackLogFields(b bool) Option

func WithTrackLogMessage added in v2.3.0

func WithTrackLogMessage(b bool) Option

Jump to

Keyboard shortcuts

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