metrics

package
v0.0.15 Latest Latest
Warning

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

Go to latest
Published: Mar 5, 2023 License: MIT Imports: 1 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Metrics

type Metrics interface {
	Gauge(name string, value float64, tags []string)
	Histogram(name string, value float64, tags []string)
	Count(name string, value int64, tags []string)
	Incr(name string, tags []string)
	Decr(name string, tags []string)
	Timing(name string, value time.Duration, tags []string)
}

type Noop

type Noop struct{}

Noop implements the Metrics interface, and does nothing, making it easier to pass around an instance safely.

func (Noop) Count

func (Noop) Count(_ string, _ int64, _ []string)

Count is noop

func (Noop) Decr

func (Noop) Decr(_ string, _ []string)

Decr is noop

func (Noop) Gauge

func (Noop) Gauge(_ string, _ float64, _ []string)

Gauge is noop

func (Noop) Histogram

func (Noop) Histogram(_ string, _ float64, _ []string)

Histogram is noop

func (Noop) Incr

func (Noop) Incr(_ string, _ []string)

Incr is noop

func (Noop) Timing

func (Noop) Timing(_ string, _ time.Duration, _ []string)

Timing is noop

Jump to

Keyboard shortcuts

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