telemetry

package
v1.32.0 Latest Latest
Warning

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

Go to latest
Published: Jul 8, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Incr

func Incr(name string, tags []string, rate float64)

func Init

func Init(cfg *configPkg.Config) error

func Timing

func Timing(name string, value time.Duration, tags []string, rate float64)

Types

type Client

type Client struct {
	Provider Provider
}
var Singleton *Client

type Provider

type Provider interface {
	Incr(name string, tags []string, rate float64)
	Timing(name string, value time.Duration, tags []string, rate float64)
}

type ProviderType

type ProviderType string
const (
	PROVIDER_DATADOG    ProviderType = "statsd"
	PROVIDER_PROMETHEUS ProviderType = "prometheus"
)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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