(parent metrics.Registry)
| 53 | } |
| 54 | |
| 55 | func newCleanupRegistry(parent metrics.Registry) metrics.Registry { |
| 56 | return &cleanupRegistry{ |
| 57 | parent: parent, |
| 58 | metrics: map[string]struct{}{}, |
| 59 | } |
| 60 | } |
| 61 | |
| 62 | func (r *cleanupRegistry) Each(fn func(string, any)) { |
| 63 | r.mutex.RLock() |
no outgoing calls