Documentation
¶
Overview ¶
Package metrics is an interface for instrumentation.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( DefaultNamespace = "micro" DefaultBatchInterval = time.Second * 5 )
Functions ¶
Types ¶
type Metrics ¶
type Metrics interface {
Close() error
Init(...Option) error
Counter(id string) Counter
Gauge(id string) Gauge
Histogram(id string) Histogram
// Name
String() string
}
Metrics provides a way to instrument application data
Click to show internal directories.
Click to hide internal directories.