Default aggregation for SumObserver and UpDownSumObserver #944
Labels
area:sdk
Related to the SDK
priority:p1
Highest priority level
release:required-for-ga
Must be resolved before GA release, or nice to have before GA
spec:metrics
Related to the specification/metrics directory
Milestone
What are you trying to achieve?
Review requirements for default aggregation for
SumObserver
andUpDownSumObserver
, and confirm what should be the behavior in all SDKs for consistency.First of all, SDKs currently implement aggregation for
SumObserver
andUpDownSumObserver
differently:According to spec, they should be using the
Sum
aggregation: https://github.com/open-telemetry/opentelemetry-specification/blob/master/specification/metrics/api.md#aggregationsIf there is exactly one data point per measurement interval, there is no difference between using
LastValue
vsSum
as far as I understand. It may be important for consistency and correct handling of cases where there happens to be more than one data point per interval though.Additional context.
There are other cases of inconsistency in aggregation, e.g.
ValueObserver
which has reached consensus to useLastValue
in all SDKs, but the spec still states that it should be using MinMaxSumCount. UPDATE: created #945 to track separately./cc @jmacd @james-bebbington @bogdandrutu
The text was updated successfully, but these errors were encountered: