Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MakeMetricLabelKeySafe ¶
MakeMetricLabelKeySafe makes a metric label key safe.
func MakeMetricLabelValueSafe ¶
MakeMetricLabelValueSafe makes a metric label value safe.
func MakeMetricType ¶
MakeMetricType creates a metric type string.
Types ¶
type APICounter ¶
type APICounter struct {
// contains filtered or unexported fields
}
APICounter is the API counter type.
type ConsoleCounter ¶
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 NewConsoleCounter ¶ added in v0.0.6
func NewConsoleCounter() Counter
NewConsoleCounter returns a new ConsoleCounter.
Click to show internal directories.
Click to hide internal directories.