Skip to content

Commit

Permalink
refactor: adjust naming
Browse files Browse the repository at this point in the history
Co-authored-by: Alexander Knipping <[email protected]>
  • Loading branch information
costela and obitech authored Nov 9, 2023
1 parent ae3723c commit 36110fb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions extensions/prometheus/prometheus.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@ const (
namespace = "hoglet"
)

// WithPrometheusMetrics returns a [hoglet.BreakerMiddleware] that registers prometheus metrics for the circuit breaker.
// WithPrometheusMetrics returns a [hoglet.BreakerMiddleware] that registers prometheus metrics for the circuit.
//
// ⚠️ Note: the provided name must be unique across all hoglet instances using the same registerer.
func WithPrometheusMetrics(name string, reg prometheus.Registerer) hoglet.BreakerMiddleware {
func WithPrometheusMetrics(circuitName string, reg prometheus.Registerer) hoglet.BreakerMiddleware {
return func(next hoglet.ObserverFactory) (hoglet.ObserverFactory, error) {
callDurations := prometheus.NewHistogramVec(
prometheus.HistogramOpts{
Expand Down

0 comments on commit 36110fb

Please sign in to comment.