telemetry

package
v2.5.0 Latest Latest
Warning

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

Go to latest
Published: Nov 15, 2024 License: AGPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Close

func Close(ctx context.Context)

func Set

func Set(t Telemeter)

Types

type Counter

type Counter interface {
	Add(ctx context.Context, value int64)
}

func CI

func CI(meter, name, description string) (Counter, error)

type Logger

type Logger interface {
	Debug(text string)
	Debugf(format string, a ...any)

	Info(text string)
	Infof(format string, a ...any)

	Warning(text string)
	Warningf(format string, a ...any)

	Error(text string)
	Errorf(format string, a ...any)
}

func L

func L(ctx context.Context) Logger

type Telemeter

type Telemeter interface {
	Close(ctx context.Context)

	// Logs
	Logger(ctx context.Context) Logger

	// Metrics
	CounterInt(meter, name, description string) (Counter, error)

	// Traces
	Trace(ctx context.Context, tracer, name string) (context.Context, Tracer)
}

type Tracer

type Tracer interface {
	End()
}

func T

func T(ctx context.Context, tracer, name string) (context.Context, Tracer)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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