telemetry

package
v0.0.0-...-25732c4 Latest Latest
Warning

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

Go to latest
Published: Feb 10, 2024 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetListenerOnFreePort

func GetListenerOnFreePort() (*net.TCPListener, int, error)

obtem um listener em porta livre

func GetListenerOnPort

func GetListenerOnPort(porta int) (*net.TCPListener, int, error)

Fechar o listener é responsabilidade de quem chama para garantir que a alocação de multiplas portas aleatórias não colidam

func GetListenerWithFallback

func GetListenerWithFallback(maxTries, fallback int) (*net.TCPListener, int, error)

obtem um listener em porta livre com retry e fallback

Types

type Telemetry

type Telemetry struct {
	MeterProvider  metric.MeterProvider
	TrafficCounter metric.Int64Counter
	GateHistogram  metric.Int64Histogram
}

func New

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

func (Telemetry) Shutdown

func (t Telemetry) Shutdown(ctx context.Context)

func (Telemetry) Start

func (t Telemetry) Start(cfg *config.Cfg)

Jump to

Keyboard shortcuts

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