multi

package
v2.4.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Oct 1, 2020 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Factory

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

Factory is a metrics factory that dispatches to multiple metrics backends.

func New

func New(factories ...metrics.Factory) *Factory

New creates a new multi.Factory that will dispatch to multiple metrics backends.

func (*Factory) Counter

func (f *Factory) Counter(options metrics.Options) metrics.Counter

Counter implements metrics.Factory interface

func (*Factory) Gauge

func (f *Factory) Gauge(options metrics.Options) metrics.Gauge

Gauge implements metrics.Factory interface

func (*Factory) Histogram

func (f *Factory) Histogram(options metrics.HistogramOptions) metrics.Histogram

Histogram implements metrics.Factory interface

func (*Factory) Namespace

func (f *Factory) Namespace(scope metrics.NSOptions) metrics.Factory

Namespace implements metrics.Factory interface

func (*Factory) Timer

func (f *Factory) Timer(options metrics.TimerOptions) metrics.Timer

Timer implements metrics.Factory interface

Jump to

Keyboard shortcuts

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