Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Aggregator ¶
type Aggregator[K any] struct { // contains filtered or unexported fields }
Aggregator provides a single interface to update all metrics datastructures. The required datastructure is selected using the metric definition.
func NewAggregator ¶
func NewAggregator[K any](metrics pmetric.Metrics) *Aggregator[K]
NewAggregator creates a new instance of aggregator.
func (*Aggregator[K]) Finalize ¶
func (a *Aggregator[K]) Finalize(mds []model.MetricDef[K])
Finalize finalizes the aggregations performed by the aggregator so far into the pmetric.Metrics used to create this instance of the aggregator. Finalize should be called once per aggregator instance and the aggregator instance should not be used after Finalize is called.
Click to show internal directories.
Click to hide internal directories.