MCPcopy
hub / github.com/IBM/sarama / registerHistogram

Method registerHistogram

broker.go:1985–1988  ·  view source on GitHub ↗
(name string)

Source from the content-addressed store, hash-verified

1983}
1984
1985func (b *Broker) registerHistogram(name string) metrics.Histogram {
1986 nameForBroker := getMetricNameForBroker(name, b)
1987 return getOrRegisterHistogram(nameForBroker, b.metricRegistry)
1988}
1989
1990func (b *Broker) registerCounter(name string) metrics.Counter {
1991 nameForBroker := getMetricNameForBroker(name, b)

Callers 2

registerMetricsMethod · 0.95

Calls 2

getMetricNameForBrokerFunction · 0.85
getOrRegisterHistogramFunction · 0.85

Tested by 1