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.
Click to show internal directories.
Click to hide internal directories.