Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MakeMetricType ¶ added in v0.6.11
MakeMetricType creates a metric type string.
Types ¶
type APICounter ¶ added in v0.6.11
type APICounter struct {
// contains filtered or unexported fields
}
APICounter is the API counter type.
type ConsoleCounter ¶ added in v0.6.11
type ConsoleCounter struct { }
Counter is the interface for metric implementations.
type Counter ¶
type Counter interface { Count(ctx context.Context, metric string, count int64, labels map[string]string) error CountAll(ctx context.Context, records ...*Record) error }
Counter is the interface for metric counter.
func NewAPICounter ¶ added in v0.6.11
NewAPICounter creates new API counter instance.
type Recorder ¶ added in v0.7.4
type Recorder struct {
// contains filtered or unexported fields
}
Recorder is the metric recorder type.
func NewRecorder ¶ added in v0.7.4
NewRecorder creates new recorder instance.
Click to show internal directories.
Click to hide internal directories.