libs

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2024 License: MIT Imports: 24 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Modules

func Modules() fx.Option

func NewLogger

func NewLogger() func() (*logger.Logger, error)

func NewOtel

func NewOtel() func(params NewOtelParams) (*Otel, error)

Types

type NewOtelParams

type NewOtelParams struct {
	fx.In

	Lifecycle fx.Lifecycle
	Config    *configs.Config
	Logger    *logger.Logger
}

type Otel

type Otel struct {
	Trace  *trace.TracerProvider
	Metric *metric.MeterProvider
}

Jump to

Keyboard shortcuts

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