observability

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Nov 14, 2023 License: MIT Imports: 23 Imported by: 1

Documentation

Index

Constants

View Source
const (
	OTLPHttp = OTLPFormat("http")
	OTLPGrpc = OTLPFormat("grpc")
	OTLPNone = OTLPFormat("")
)

Variables

This section is empty.

Functions

This section is empty.

Types

type OTLPFormat

type OTLPFormat string

type Observability

type Observability interface {
	Middleware() gin.HandlerFunc
	Logger() *slog.Logger
}

func Init

func Init(ctx context.Context, service string, logLevel slog.Level, metrics OTLPFormat, traces OTLPFormat) (Observability, error)

Jump to

Keyboard shortcuts

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