Documentation
¶
Index ¶
Constants ¶
View Source
const ( UnitMillisecond = unit("ms") UnitByte = unit("byte") UnitDimensionless = unit("1") )
Variables ¶
This section is empty.
Functions ¶
func NewMetricKey ¶
Types ¶
type ICounter ¶
type ICounter interface { IncrInt(int64, ...attribute.KeyValue) IncrFloat(float64, ...attribute.KeyValue) Async(func(context.Context, ICounter)) }
func GetCounter ¶
func GetCounter(key *metricKey) ICounter
type IGauge ¶
type IHistogram ¶
type IHistogram interface { RecordInt(int64, ...attribute.KeyValue) RecordFloat(float64, ...attribute.KeyValue) Async(func(context.Context, IHistogram)) }
func GetHistogram ¶
func GetHistogram(key *metricKey) IHistogram
Click to show internal directories.
Click to hide internal directories.