expvar

package
v1.46.0-tgt.2 Latest Latest
Warning

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

Go to latest
Published: Jun 6, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewFactory

func NewFactory(buckets int) metrics.Factory

NewFactory creates a new metrics factory using go-kit expvar package. buckets is the number of buckets to be used in histograms. Custom buckets passed via options are not supported.

Types

type Counter

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

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

func NewCounter

func NewCounter(counter kit.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-kit Gauge to jaeger-lib Gauge

func NewGauge

func NewGauge(gauge kit.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-kit Histogram to jaeger-lib Histogram

func NewHistogram

func NewHistogram(hist kit.Histogram) *Histogram

NewHistogram creates a new Histogram

func (*Histogram) Record

func (t *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-kit Histogram to jaeger-lib Timer

func NewTimer

func NewTimer(hist kit.Histogram) *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