Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Adder ¶ added in v0.6.0
type Adder struct {
// contains filtered or unexported fields
}
Adder adds (+) datapoints.
func (Adder) Exponential ¶ added in v0.6.0
func (add Adder) Exponential(state, dp pmetric.ExponentialHistogramDataPoint) error
func (Adder) Histograms ¶ added in v0.6.0
func (add Adder) Histograms(state, dp pmetric.HistogramDataPoint) error
type Aggregator ¶ added in v0.6.0
type Aggregator interface { Numbers(state, dp pmetric.NumberDataPoint) error Histograms(state, dp pmetric.HistogramDataPoint) error Exponential(state, dp pmetric.ExponentialHistogramDataPoint) error }
Aggregator performs an operation on two datapoints. Given pmetric types are mutable by nature, this logically works as follows:
*state = op(state, dp)
See Adder for an implementation.
Click to show internal directories.
Click to hide internal directories.