observability

package
v0.0.9 Latest Latest
Warning

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

Go to latest
Published: Sep 26, 2024 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ParseLevel

func ParseLevel(s string) (l slog.Leveler, err error)

func StartObservability

func StartObservability(ctx context.Context, opts ...Customizer) error

func StopObservability

func StopObservability(ctx context.Context) (err error)

Types

type Cfg

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

type Customizer

type Customizer func(*Cfg)

func WithLoggerChannels

func WithLoggerChannels(channels map[string]string) Customizer

func WithLoggerLevel

func WithLoggerLevel(level slog.Leveler) Customizer

func WithLoggerStdout

func WithLoggerStdout(stdout bool) Customizer

func WithServiceName

func WithServiceName(serviceName string) Customizer

func WithServiceVersion

func WithServiceVersion(version string) Customizer

Jump to

Keyboard shortcuts

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