Documentation ¶
Index ¶
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
}
Metrics provides an interface to log operational counters
func NewMetrics ¶
func NewMetrics(logger log.FieldLogger, logPeriod time.Duration) *Metrics
NewMetrics creates a Metrics object using the provided logger and starts logging every provided logPeriod
Click to show internal directories.
Click to hide internal directories.