metric

package
v0.1.7 Latest Latest
Warning

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

Go to latest
Published: Nov 14, 2021 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Name = "metric"

Functions

func Register

func Register(name string, r Factory)

Types

type BucketPair

type BucketPair = tally.BucketPair

type Buckets

type Buckets = tally.Buckets

type Capabilities

type Capabilities = tally.Capabilities

type Cfg

type Cfg struct {
	Driver    string        `json:"driver"`
	Interval  time.Duration `json:"interval"`
	Separator string        `json:"separator"`
}

func GetDefaultCfg

func GetDefaultCfg() Cfg

type Counter

type Counter = tally.Counter

type Factory

type Factory func(cfg map[string]interface{}, opts *tally.ScopeOptions) error

func Get

func Get(names ...string) Factory

type Gauge

type Gauge = tally.Gauge

type Histogram

type Histogram = tally.Histogram

type Resource

type Resource struct {
	tally.Scope
}

func (*Resource) Close

func (m *Resource) Close() error

func (*Resource) Kind

func (m *Resource) Kind() string

func (*Resource) UpdateResObj

func (m *Resource) UpdateResObj(val interface{})

type Scope

type Scope = tally.Scope

type Stopwatch

type Stopwatch = tally.Stopwatch

type StopwatchRecorder

type StopwatchRecorder = tally.StopwatchRecorder

type Tags

type Tags = map[string]string

type Timer

type Timer = tally.Timer

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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