package adapters

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

Index

Functions

func WrapFactoryWithTags

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

WrapFactoryWithTags creates a real metrics.Factory that supports subscopes.

func WrapFactoryWithoutTags

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

WrapFactoryWithoutTags creates a real metrics.Factory that supports subscopes.

Types

type FactoryWithTags

type FactoryWithTags interface {
	Counter(name string, tags map[string]string) metrics.Counter
	Gauge(name string, tags map[string]string) metrics.Gauge
	Timer(name string, tags map[string]string) metrics.Timer
}

FactoryWithTags creates metrics with fully qualified name and tags.

type FactoryWithoutTags

type FactoryWithoutTags interface {
	Counter(name string) metrics.Counter
	Gauge(name string) metrics.Gauge
	Timer(name string) metrics.Timer
}

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

type Options

type Options struct {
	ScopeSep string
	TagsSep  string
	TagKVSep string
}

Options affect how the adapter factory behaves.

Source Files

cache.go factory.go tagless.go

Version
v1.4.0
Published
Mar 5, 2018
Platform
js/wasm
Imports
2 packages
Last checked
23 hours ago

Tools for package owners.