1
0
mirror of https://github.com/open-telemetry/opentelemetry-go.git synced 2025-07-13 01:00:22 +02:00

Add Aggregation.Kind()

This commit is contained in:
jmacd
2020-06-10 00:32:14 -07:00
parent bb2eb8ee26
commit 8483cc3d23
7 changed files with 53 additions and 7 deletions

View File

@ -53,6 +53,11 @@ func New() *Aggregator {
return &Aggregator{}
}
// Kind returns aggregation.ExactKind.
func (c *Aggregator) Kind() aggregation.Kind {
return aggregation.ExactKind
}
// Sum returns the sum of values in the checkpoint.
func (c *Aggregator) Sum() (metric.Number, error) {
return c.ckptSum, nil