ObservableCounter should report absolute value #3073
Labels
bug
Something isn't working
priority:p2
Bugs and spec inconsistencies which cause telemetry to be incomplete or incorrect
What happened?
Steps to Reproduce
In api-metrics@0.29.2, there are synchronous api
Counter
and asynchronous apiObservableCounter
.But
ObservableCounter
does not report absolute value, this is not conforming to specification.According to my colleague, in the Java implementation,
ObservableCounter
report absolute value.If that's true, this will cause cross-language developers to misunderstand the API.
Expected Result
The same value is reported each time.
1 - 1 - 1 - 1 - 1 - ...
Actual Result
The value is incremented with each report.
1 - 2 - 3 - 4 - 5 -...
Additional Details
refer:
#1564
OpenTelemetry Setup Code
package.json
@opentelemetry/api-metrics@0.29.2
Relevant log output
The text was updated successfully, but these errors were encountered: