tally

package
v2.4.1+incompatible Latest Latest
Warning

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

Go to latest
Published: Mar 29, 2021 License: Apache-2.0 Imports: 3 Imported by: 12

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Wrap

func Wrap(scope tally.Scope) metrics.Factory

Wrap takes a tally Scope and returns jaeger-lib metrics.Factory.

Types

type Counter

type Counter struct {
	// contains filtered or unexported fields
}

Counter is an adapter from go-tally Counter to jaeger-lib Counter

func NewCounter

func NewCounter(counter tally.Counter) *Counter

NewCounter creates a new Counter

func (*Counter) Inc

func (c *Counter) Inc(delta int64)

Inc adds the given value to the counter.

type Gauge

type Gauge struct {
	// contains filtered or unexported fields
}

Gauge is an adapter from go-tally Gauge to jaeger-lib Gauge

func NewGauge

func NewGauge(gauge tally.Gauge) *Gauge

NewGauge creates a new Gauge

func (*Gauge) Update

func (g *Gauge) Update(value int64)

Update the gauge to the value passed in.

type Histogram

type Histogram struct {
	// contains filtered or unexported fields
}

Histogram is an adapter from go-tally Histogram to jaeger-lib Histogram

func NewHistogram

func NewHistogram(histogram tally.Histogram) *Histogram

NewHistogram creates a new Histogram

func (*Histogram) Record

func (h *Histogram) Record(value float64)

Record saves the value passed in.

type Timer

type Timer struct {
	// contains filtered or unexported fields
}

Timer is an adapter from go-tally Histogram to jaeger-lib Timer

func NewTimer

func NewTimer(timer tally.Timer) *Timer

NewTimer creates a new Timer

func (*Timer) Record

func (t *Timer) Record(delta time.Duration)

Record saves the time passed in.

Jump to

Keyboard shortcuts

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