tracer

package
v0.0.0-...-16a9631 Latest Latest
Warning

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

Go to latest
Published: Aug 10, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MustTrace

func MustTrace(ctx context.Context) context.Context

Types

type Tracer

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

func New

func New(nested slog.Handler) *Tracer

func (*Tracer) Enabled

func (t *Tracer) Enabled(ctx context.Context, level slog.Level) bool

func (*Tracer) Handle

func (t *Tracer) Handle(ctx context.Context, record slog.Record) error

func (*Tracer) WithAttrs

func (t *Tracer) WithAttrs(attrs []slog.Attr) slog.Handler

func (*Tracer) WithGroup

func (t *Tracer) WithGroup(name string) slog.Handler

Jump to

Keyboard shortcuts

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