Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InstrumentHandlerCounter ¶
func InstrumentHandlerCounter(metric *prometheus.CounterVec, next http.Handler) http.Handler
func InstrumentHandlerDuration ¶
func InstrumentHandlerDuration(metric prometheus.ObserverVec, next http.Handler) http.Handler
Types ¶
type Counters ¶
type Counters struct { InFlightGauge prometheus.Gauge ReqTotalCounter *prometheus.CounterVec ReqDurationHistogram *prometheus.HistogramVec // contains filtered or unexported fields }
func DefaultCounters ¶
func DefaultCounters() *Counters
DefaultCounters register counters which uses by default Must be called before function: func(h http.Handler) http.Handler
Click to show internal directories.
Click to hide internal directories.