jaeger-lib: github.com/uber/jaeger-lib/metrics/adapters Index | Files

package adapters

import "github.com/uber/jaeger-lib/metrics/adapters"

Index

Package Files

cache.go factory.go tagless.go

func WrapFactoryWithTags Uses

func WrapFactoryWithTags(f FactoryWithTags, options Options) metrics.Factory

WrapFactoryWithTags creates a real metrics.Factory that supports subscopes.

func WrapFactoryWithoutTags Uses

func WrapFactoryWithoutTags(f FactoryWithoutTags, options Options) metrics.Factory

WrapFactoryWithoutTags creates a real metrics.Factory that supports subscopes.

type FactoryWithTags Uses

type FactoryWithTags interface {
    Counter(options metrics.Options) metrics.Counter
    Gauge(options metrics.Options) metrics.Gauge
    Timer(options metrics.TimerOptions) metrics.Timer
    Histogram(options metrics.HistogramOptions) metrics.Histogram
}

FactoryWithTags creates metrics with fully qualified name and tags.

type FactoryWithoutTags Uses

type FactoryWithoutTags interface {
    Counter(options TaglessOptions) metrics.Counter
    Gauge(options TaglessOptions) metrics.Gauge
    Timer(options TaglessTimerOptions) metrics.Timer
    Histogram(options TaglessHistogramOptions) metrics.Histogram
}

FactoryWithoutTags creates metrics based on name only, without tags. Suitable for integrating with statsd-like backends that don't support tags.

type Options Uses

type Options struct {
    ScopeSep string
    TagsSep  string
    TagKVSep string
}

Options affect how the adapter factory behaves.

type TaglessHistogramOptions Uses

type TaglessHistogramOptions struct {
    Name    string
    Help    string
    Buckets []float64
}

TaglessHistogramOptions defines the information associated with a metric

type TaglessOptions Uses

type TaglessOptions struct {
    Name string
    Help string
}

TaglessOptions defines the information associated with a metric

type TaglessTimerOptions Uses

type TaglessTimerOptions struct {
    Name    string
    Help    string
    Buckets []time.Duration
}

TaglessTimerOptions defines the information associated with a metric

Package adapters imports 3 packages (graph) and is imported by 2 packages. Updated 2018-12-13. Refresh now. Tools for package owners.