trace

package
v0.0.0-...-96f436b Latest Latest
Warning

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

Go to latest
Published: May 19, 2024 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Directory string `yaml:"dir"`
	Level     int    `yaml:"level"`
}

type Logger

type Logger struct {
	slog.Logger
}

func NewLogger

func NewLogger(cfg *Config) (*Logger, error)

func (*Logger) Trace

func (log *Logger) Trace() *Trace

type Span

type Span struct {
	Trace

	Parent uuid.UUID
}

type Trace

type Trace struct {
	slog.Logger

	ID uuid.UUID
}

func (*Trace) Span

func (log *Trace) Span() *Span

Jump to

Keyboard shortcuts

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