fork

package
v2.4.1+incompatible Latest Latest
Warning

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

Go to latest
Published: Mar 29, 2021 License: Apache-2.0 Imports: 1 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(forkNamespace string, forkFactory, defaultFactory metrics.Factory) metrics.Factory

New creates new fork.Factory.

Types

type Factory

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

Factory represents a metrics factory that delegates metrics with forkNamespace to forkFactory otherwise - defaultFactory is used.

func (*Factory) Counter

func (f *Factory) Counter(metric 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(metric 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(metric 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