jaeger-lib: github.com/uber/jaeger-lib/metrics/go-kit Index | Files | Directories

package xkit

import "github.com/uber/jaeger-lib/metrics/go-kit"

Index

Package Files

factory.go metrics.go

func Wrap Uses

func Wrap(namespace string, f Factory, options ...FactoryOption) metrics.Factory

Wrap is used to create an adapter from xkit.Factory to metrics.Factory.

type Capabilities Uses

type Capabilities struct {
    // Tagging indicates whether the factory has the capability for tagged metrics
    Tagging bool
}

Capabilities describes capabilities of a specific metrics factory.

type Counter Uses

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

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

func NewCounter Uses

func NewCounter(counter kit.Counter) *Counter

NewCounter creates a new Counter

func (*Counter) Inc Uses

func (c *Counter) Inc(delta int64)

Inc adds the given value to the counter.

type Factory Uses

type Factory interface {
    Counter(name string) kit.Counter
    Gauge(name string) kit.Gauge
    Histogram(name string) kit.Histogram
    Capabilities() Capabilities
}

Factory provides a unified interface for creating named metrics from various go-kit metrics implementations.

type FactoryOption Uses

type FactoryOption func(*factory)

FactoryOption is a function that adjusts some parameters of the factory.

func ScopeSeparator Uses

func ScopeSeparator(scopeSep string) FactoryOption

ScopeSeparator returns an option that overrides default scope separator.

func TagsSeparator Uses

func TagsSeparator(tagsSep string) FactoryOption

TagsSeparator returns an option that overrides default tags separator.

type Gauge Uses

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

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

func NewGauge Uses

func NewGauge(gauge kit.Gauge) *Gauge

NewGauge creates a new Gauge

func (*Gauge) Update Uses

func (g *Gauge) Update(value int64)

Update the gauge to the value passed in.

type Histogram Uses

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

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

func NewHistogram Uses

func NewHistogram(hist kit.Histogram) *Histogram

NewHistogram creates a new Histogram

func (*Histogram) Record Uses

func (t *Histogram) Record(value float64)

Record saves the value passed in.

type Timer Uses

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

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

func NewTimer Uses

func NewTimer(hist kit.Histogram) *Timer

NewTimer creates a new Timer

func (*Timer) Record Uses

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

Record saves the time passed in.

Directories

PathSynopsis
expvar

Package xkit imports 3 packages (graph) and is imported by 5 packages. Updated 2018-12-19. Refresh now. Tools for package owners.