Documentation ¶
Index ¶
- func New(forkNamespace string, forkFactory, defaultFactory metrics.Factory) metrics.Factory
- type Factory
- func (f *Factory) Counter(metric metrics.Options) metrics.Counter
- func (f *Factory) Gauge(options metrics.Options) metrics.Gauge
- func (f *Factory) Histogram(metric metrics.HistogramOptions) metrics.Histogram
- func (f *Factory) Namespace(scope metrics.NSOptions) metrics.Factory
- func (f *Factory) Timer(metric metrics.TimerOptions) metrics.Timer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
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) Histogram ¶
func (f *Factory) Histogram(metric metrics.HistogramOptions) metrics.Histogram
Histogram implements metrics.Factory interface.
Click to show internal directories.
Click to hide internal directories.