config

package
v0.0.0-...-1a5b836 Latest Latest
Warning

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

Go to latest
Published: Feb 12, 2024 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitLogger

func InitLogger(cfg *Config)

func SetupStdOutMetrics

func SetupStdOutMetrics() (metric.Exporter, error)

func SetupStdOutTracing

func SetupStdOutTracing() (trace.SpanExporter, error)

Types

type Config

type Config struct {
	EnableTelemetry   bool
	TelemetryEndpoint string
	Worker            int
	LogFormat         string
	LogLevel          string
}

func DefaultConfig

func DefaultConfig() *Config

func NewConfig

func NewConfig() *Config

type Telemetry

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

func SetupTelemetry

func SetupTelemetry(ctx context.Context) (*Telemetry, error)

func (Telemetry) Shutdown

func (t Telemetry) Shutdown()

Jump to

Keyboard shortcuts

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