metric

package
v0.2.5 Latest Latest
Warning

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

Go to latest
Published: Jul 1, 2022 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Name = "metric"

Functions

func CreateCtx

func CreateCtx(parent context.Context, scope tally.Scope) context.Context

func GetMetric

func GetMetric(ctx context.Context) tally.Scope

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"`
	DriverCfg config.CfgMap `json:"driver_config"`
	Interval  time.Duration `json:"interval"`
	Separator string        `json:"separator"`
}

func DefaultCfg

func DefaultCfg() Cfg

type Counter

type Counter = tally.Counter

type Gauge

type Gauge = tally.Gauge

type Histogram

type Histogram = tally.Histogram

type Metric

type Metric = tally.Scope

type Scope

type Scope = tally.Scope

type Stats

type Stats = 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
drivers

Jump to

Keyboard shortcuts

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