telemetry

package
v0.0.0-...-c410bd8 Latest Latest
Warning

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

Go to latest
Published: Aug 3, 2023 License: GPL-3.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Agent

type Agent struct {
	Host string `json:"host,omitempty" koanf:"host"`
	Port string `json:"port,omitempty" koanf:"port"`
}

type Config

type Config struct {
	Trace       Trace  `json:"trace,omitempty"        koanf:"trace"`
	Meter       Meter  `json:"meter,omitempty"        koanf:"meter"`
	Namespace   string `json:"namespace,omitempty"    koanf:"namespace"`
	ServiceName string `json:"service_name,omitempty" koanf:"service_name"`
}

type Meter

type Meter struct {
	Address string `json:"address,omitempty" koanf:"address"`
	Enabled bool   `json:"enabled,omitempty" koanf:"enabled"`
}

type Telemetery

type Telemetery struct {
	TraceProvider trace.TracerProvider
	MeterProvider metric.MeterProvider
	// contains filtered or unexported fields
}

func Provide

func Provide(lc fx.Lifecycle, cfg Config) Telemetery

func ProvideNull

func ProvideNull(_ fx.Lifecycle) Telemetery

type Trace

type Trace struct {
	Enabled bool  `json:"enabled,omitempty" koanf:"enabled"`
	Agent   Agent `json:"agent,omitempty"   koanf:"agent"`
}

Jump to

Keyboard shortcuts

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