metrics: have Registry() return a Registry instead of Registerer

(so it can also be used as a Gatherer)
This commit is contained in:
2023-08-06 12:34:56 -07:00
parent be9b63f382
commit 3f1f4436df
3 changed files with 10 additions and 6 deletions

View File

@@ -27,7 +27,7 @@ func New() *Metrics {
return m
}
func (m *Metrics) Registry() prometheus.Registerer {
func (m *Metrics) Registry() *prometheus.Registry {
return m.r
}