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

Function getOrRegisterTopicHistogram

metrics.go:42–44  ·  view source on GitHub ↗
(name string, topic string, r metrics.Registry)

Source from the content-addressed store, hash-verified

40}
41
42func getOrRegisterTopicHistogram(name string, topic string, r metrics.Registry) metrics.Histogram {
43 return getOrRegisterHistogram(getMetricNameForTopic(name, topic), r)
44}
45
46// cleanupRegistry is an implementation of metrics.Registry that allows
47// to unregister from the parent registry only those metrics

Callers 1

encodeMethod · 0.85

Calls 2

getOrRegisterHistogramFunction · 0.85
getMetricNameForTopicFunction · 0.85

Tested by

no test coverage detected