metric

package
v0.1.5 Latest Latest
Warning

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

Go to latest
Published: Aug 21, 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) (err error)

func TimeRecord added in v0.1.3

func TimeRecord(t Timer, fn func())

Types

type BucketPair added in v0.1.3

type BucketPair = tally.BucketPair

type Buckets added in v0.1.3

type Buckets = tally.Buckets

type Capabilities added in v0.1.3

type Capabilities = tally.Capabilities

type Cfg

type Cfg struct {
	Driver string `json:"driver"`
}

func GetDefaultCfg

func GetDefaultCfg() Cfg

type Counter added in v0.1.3

type Counter = tally.Counter

func NewCounter added in v0.1.3

func NewCounter(name string, tags Tags) 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

func NewGauge added in v0.1.3

func NewGauge(name string) Gauge

type Histogram

type Histogram = tally.Histogram

func NewHistogram added in v0.1.3

func NewHistogram(name string, buckets Buckets) Histogram

type Scope added in v0.1.3

type Scope = tally.Scope

func Root added in v0.1.3

func Root() Scope

Root 获取全局的scope

func WithSubScope added in v0.1.3

func WithSubScope(name string) Scope

func WithTagged added in v0.1.3

func WithTagged(tags Tags) Scope

type Stopwatch added in v0.1.3

type Stopwatch = tally.Stopwatch

type StopwatchRecorder added in v0.1.3

type StopwatchRecorder = tally.StopwatchRecorder

type Tags

type Tags = map[string]string

type Timer added in v0.1.3

type Timer = tally.Timer

func NewTimer added in v0.1.3

func NewTimer(name string) Timer

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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