(name string, metric any)
| 80 | } |
| 81 | |
| 82 | func (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 | |
| 89 | func (r *cleanupRegistry) Register(name string, metric any) error { |
| 90 | r.mutex.Lock() |
no outgoing calls
no test coverage detected