stats

package
v1.0.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Metrics

type Metrics interface {
	Store(name string, val interface{}, tags ...Tag)
	Counter(name string, val interface{}, tags ...Tag)
	Summary(name string, val interface{}, tags ...Tag)
	Duration(name string, start time.Time, tags ...Tag)
}

Metrics declares common methods provided by metrics client

func NewMock

func NewMock(env, component string, logMetrics bool) Metrics

NewMock creates a mock metrics client which outputs stats via default logger.

type Tag

type Tag struct {
	Name  string
	Value string
}

Tag keeps tag value for a stats point

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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