diff --git a/metrics/prometheus/factory.go b/metrics/prometheus/factory.go index 61d05f6..2fdfc94 100644 --- a/metrics/prometheus/factory.go +++ b/metrics/prometheus/factory.go @@ -165,8 +165,12 @@ func (g *gauge) Update(v int64) { g.gauge.Set(float64(v)) } +type observer interface { + Observe(v float64) +} + type timer struct { - histogram prometheus.Histogram + histogram observer } func (t *timer) Record(v time.Duration) {