metric

package
v0.2.10-28 Latest Latest
Warning

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

Go to latest
Published: Apr 5, 2023 License: Apache-2.0 Imports: 14 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 Ctx

func Ctx(ctx context.Context) tally.Scope

func List

func List() map[string]Factory

func Register

func Register(name string, broker Factory)

Types

type BucketPair

type BucketPair = tally.BucketPair

type Buckets

type Buckets = tally.Buckets

type Capabilities

type Capabilities = tally.Capabilities

type Config

type Config struct {
	Driver    string        `json:"driver"`
	DriverCfg config.Map    `json:"driver_config"`
	Interval  time.Duration `json:"interval"`
}

func DefaultCfg

func DefaultCfg() Config

type Counter

type Counter = tally.Counter

type Factory

type Factory func(cfg *Config, log log.Logger) *tally.ScopeOptions

func Get

func Get(name string) Factory

type Gauge

type Gauge = tally.Gauge

type Histogram

type Histogram = tally.Histogram

type Metric

type Metric = tally.Scope

func New

func New(m lifecycle.Lifecycle, cfg *Config, log log.Logger) Metric

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