Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // GaugeDesc groups by "G" GaugeDesc = export.NewDescriptor( "gauge", export.GaugeKind, []core.Key{key.New("G")}, "", "", core.Int64NumberKind, false) // CounterDesc groups by "C" CounterDesc = export.NewDescriptor( "counter", export.CounterKind, []core.Key{key.New("C")}, "", "", core.Int64NumberKind, false) // SdkEncoder uses a non-standard encoder like K1~V1&K2~V2 SdkEncoder = &Encoder{} // GroupEncoder uses the SDK default encoder GroupEncoder = sdk.DefaultLabelEncoder() // Labels1 has G=H and C=D Labels1 = makeLabels(SdkEncoder, key.String("G", "H"), key.String("C", "D")) // Labels2 has C=D and E=F Labels2 = makeLabels(SdkEncoder, key.String("C", "D"), key.String("E", "F")) // Labels3 is the empty set Labels3 = makeLabels(SdkEncoder) )
Functions ¶
func CounterAgg ¶
func CounterAgg(v int64) export.Aggregator
CounterAgg returns a checkpointed counter aggregator w/ the specified value.
func GaugeAgg ¶
func GaugeAgg(v int64) export.Aggregator
GaugeAgg returns a checkpointed gauge aggregator w/ the specified value.
func NewAggregationSelector ¶
func NewAggregationSelector() export.AggregationSelector
NewAggregationSelector returns a policy that is consistent with the test descriptors above. I.e., it returns counter.New() for counter instruments and gauge.New for gauge instruments.
Types ¶
Click to show internal directories.
Click to hide internal directories.