Documentation ¶
Index ¶
- type Metrics
- func (metrics *Metrics) Middleware(next http.Handler) http.Handler
- func (metrics *Metrics) WithCounterVector(namespace string, subsystem string, metricsName string) *Metrics
- func (metrics *Metrics) WithHistogramVector(namespace string, subsystem string, metricsName string, buckets []float64) *Metrics
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Metrics ¶
type Metrics struct {
// contains filtered or unexported fields
}
func NewMetrics ¶
func NewMetrics() *Metrics
func (*Metrics) Middleware ¶
If none of the metric type is set by calling at least one of `WithCounterVector`, `WithHistogramVector` methods, this method will PANIC.
func (*Metrics) WithCounterVector ¶
Click to show internal directories.
Click to hide internal directories.