Documentation ¶
Overview ¶
Package metrics provides support to update metric values.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { Goroutines *metrics.Gauge[uint64] Requests *metrics.Counter[uint64] Failures *metrics.Counter[uint64] Panics *metrics.Counter[uint64] }
Config lists the set of metrics that is tracked.
type Values ¶
type Values struct {
// contains filtered or unexported fields
}
Values provides an api to work with metrics.
func (*Values) IncFailures ¶
func (v *Values) IncFailures()
IncFailures increments the failures by 1.
func (*Values) IncRequests ¶
IncRequests increments the requests by 1.
func (*Values) SetGoroutines ¶
func (v *Values) SetGoroutines()
SetGoroutines updates the number of goroutines.
Click to show internal directories.
Click to hide internal directories.