diff options
Diffstat (limited to 'metrics/registry.go')
-rw-r--r-- | metrics/registry.go | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/metrics/registry.go b/metrics/registry.go index cc34c9dfd..c1cf7906c 100644 --- a/metrics/registry.go +++ b/metrics/registry.go @@ -311,7 +311,10 @@ func (r *PrefixedRegistry) UnregisterAll() { r.underlying.UnregisterAll() } -var DefaultRegistry Registry = NewRegistry() +var ( + DefaultRegistry = NewRegistry() + EphemeralRegistry = NewRegistry() +) // Call the given function for each registered metric. func Each(f func(string, interface{})) { |