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

Method GetOrRegister

metrics.go:82–87  ·  view source on GitHub ↗
(name string, metric any)

Source from the content-addressed store, hash-verified

80}
81
82func (r *cleanupRegistry) GetOrRegister(name string, metric any) any {
83 r.mutex.Lock()
84 defer r.mutex.Unlock()
85 r.metrics[name] = struct{}{}
86 return r.parent.GetOrRegister(name, metric)
87}
88
89func (r *cleanupRegistry) Register(name string, metric any) error {
90 r.mutex.Lock()

Callers 1

getOrRegisterHistogramFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected