otel

package
v0.0.0-...-3029119 Latest Latest
Warning

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

Go to latest
Published: Mar 11, 2024 License: AGPL-3.0 Imports: 22 Imported by: 10

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Logger

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

func (Logger) Debug

func (l Logger) Debug(content string)

func (Logger) Debugf

func (l Logger) Debugf(format string, a ...any)

func (Logger) Error

func (l Logger) Error(content string)

func (Logger) Errorf

func (l Logger) Errorf(format string, a ...any)

func (Logger) Info

func (l Logger) Info(content string)

func (Logger) Infof

func (l Logger) Infof(format string, a ...any)

func (Logger) Warning

func (l Logger) Warning(content string)

func (Logger) Warningf

func (l Logger) Warningf(format string, a ...any)

type Span

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

func (Span) End

func (s Span) End()

type Telemeter

type Telemeter struct {
	Logs    logs
	Metrics metrics
	Traces  traces
}

func NewTelemeter

func NewTelemeter(ctx context.Context, serviceName string) (Telemeter, error)

func (Telemeter) Close

func (tel Telemeter) Close(ctx context.Context)

func (Telemeter) CounterInt

func (tel Telemeter) CounterInt(meter, name, description string) (telemetry.Counter, error)

func (Telemeter) Logger

func (tel Telemeter) Logger(ctx context.Context) telemetry.Logger

func (Telemeter) Trace

func (tel Telemeter) Trace(ctx context.Context, tracer, name string) (context.Context, telemetry.Tracer)

Jump to

Keyboard shortcuts

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