adapters

package
v1.5.0 Latest Latest
Warning

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

Go to latest
Published: May 11, 2018 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

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.

Jump to

Keyboard shortcuts

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