tracing

package
v0.0.0-...-3fc648d Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2026 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Level

type Level string
const (
	LevelOff     Level = "off"
	LevelBasic   Level = "basic"
	LevelVerbose Level = "verbose"
)

func LevelFromEnv

func LevelFromEnv() (Level, bool)

func ParseLevel

func ParseLevel(value string) (Level, bool)

func (Level) Enabled

func (l Level) Enabled(min Level) bool

type Tracing

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

func New

func New(scope string, level Level) Tracing

func (Tracing) Level

func (t Tracing) Level() Level

func (Tracing) Start

func (t Tracing) Start(ctx context.Context, name string, opts ...trace.SpanStartOption) (context.Context, trace.Span)

func (Tracing) StartLevel

func (t Tracing) StartLevel(ctx context.Context, min Level, name string, opts ...trace.SpanStartOption) (context.Context, trace.Span)

Jump to

Keyboard shortcuts

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