Package multi provides adapters that send observations to multiple metrics simultaneously. This is useful if your service needs to emit to multiple instrumentation systems at the same time, for example if your organization is transitioning from one system to another.
Internal call graph ▹
Internal call graph ▾
In the call graph viewer below, each node is a function belonging to this package and its children are the functions it calls—perhaps dynamically.
The root nodes are the entry points of the package: functions that may be called from outside the package. There may be non-exported or anonymous functions among them if they are called dynamically from another package.
Click a node to visit that function's source code.
From there you can visit its callers by
clicking its declaring
Functions may be omitted if they were determined to be unreachable in the particular programs or tests that were analyzed.
Counter collects multiple individual counters and treats them as a unit.
type Counter metrics.Counter
func NewCounter ¶
func NewCounter(c ...metrics.Counter) Counter
NewCounter returns a multi-counter, wrapping the passed counters.
func (c Counter) Add(delta float64)
Add implements counter.
func (c Counter) With(labelValues ...string) metrics.Counter
With implements counter.
Gauge collects multiple individual gauges and treats them as a unit.
type Gauge metrics.Gauge
func NewGauge(g ...metrics.Gauge) Gauge
NewGauge returns a multi-gauge, wrapping the passed gauges.
func (g Gauge) Add(delta float64)
Add implements metrics.Gauge.
func (g Gauge) Set(value float64)
Set implements Gauge.
func (g Gauge) With(labelValues ...string) metrics.Gauge
With implements gauge.
Histogram collects multiple individual histograms and treats them as a unit.
type Histogram metrics.Histogram
func NewHistogram ¶
func NewHistogram(h ...metrics.Histogram) Histogram
NewHistogram returns a multi-histogram, wrapping the passed histograms.
func (h Histogram) Observe(value float64)
Observe implements Histogram.
func (h Histogram) With(labelValues ...string) metrics.Histogram
With implements histogram.