Documentation ¶
Index ¶
- Constants
- func CheckedMerge(t *testing.T, aggInto, aggFrom export.Aggregator, ...)
- func CheckedUpdate(t *testing.T, agg export.Aggregator, number number.Number, ...)
- func NewAggregatorTest(mkind sdkapi.InstrumentKind, nkind number.Kind) *metric.Descriptor
- func RunProfiles(t *testing.T, f func(*testing.T, Profile))
- func SynchronizedMoveResetTest(t *testing.T, mkind sdkapi.InstrumentKind, ...)
- func TestMain(m *testing.M)
- type NoopAggregation
- type NoopAggregator
- func (NoopAggregator) Aggregation() aggregation.Aggregation
- func (NoopAggregator) Merge(export.Aggregator, *metric.Descriptor) error
- func (NoopAggregator) SynchronizedMove(export.Aggregator, *metric.Descriptor) error
- func (NoopAggregator) Update(context.Context, number.Number, *metric.Descriptor) error
- type Numbers
- func (n *Numbers) Append(v number.Number)
- func (n *Numbers) Count() uint64
- func (n *Numbers) Len() int
- func (n *Numbers) Less(i, j int) bool
- func (n *Numbers) Max() number.Number
- func (n *Numbers) Min() number.Number
- func (n *Numbers) Points() []number.Number
- func (n *Numbers) Sort()
- func (n *Numbers) Sum() number.Number
- func (n *Numbers) Swap(i, j int)
- type Profile
Constants ¶
View Source
const Magnitude = 1000
Variables ¶
This section is empty.
Functions ¶
func CheckedMerge ¶
func CheckedMerge(t *testing.T, aggInto, aggFrom export.Aggregator, descriptor *metric.Descriptor)
func CheckedUpdate ¶
func CheckedUpdate(t *testing.T, agg export.Aggregator, number number.Number, descriptor *metric.Descriptor)
CheckedUpdate performs the same range test the SDK does on behalf of the aggregator.
func NewAggregatorTest ¶
func NewAggregatorTest(mkind sdkapi.InstrumentKind, nkind number.Kind) *metric.Descriptor
func SynchronizedMoveResetTest ¶
func SynchronizedMoveResetTest(t *testing.T, mkind sdkapi.InstrumentKind, nf func(*metric.Descriptor) export.Aggregator)
Types ¶
type NoopAggregation ¶
type NoopAggregation struct{}
func (NoopAggregation) Kind ¶
func (NoopAggregation) Kind() aggregation.Kind
type NoopAggregator ¶
type NoopAggregator struct{}
func (NoopAggregator) Aggregation ¶
func (NoopAggregator) Aggregation() aggregation.Aggregation
func (NoopAggregator) Merge ¶
func (NoopAggregator) Merge(export.Aggregator, *metric.Descriptor) error
func (NoopAggregator) SynchronizedMove ¶
func (NoopAggregator) SynchronizedMove(export.Aggregator, *metric.Descriptor) error
func (NoopAggregator) Update ¶
func (NoopAggregator) Update(context.Context, number.Number, *metric.Descriptor) error
Click to show internal directories.
Click to hide internal directories.