Histogram Record operation should be explicit about not recording negative values #2757
Labels
area:api
Cross language API specification issue
spec:metrics
Related to the specification/metrics directory
triage:rejected:needs-info
What are you trying to achieve?
I'm trying to make sure that all the languages are consistent with regards to the implementation of the explicit bucket histogram.
The specification should be clear about the expected behavior of implementations when a negative number is passed to the Record operation of a Histogram.
Right now it says:
https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/metrics/api.md#record
What did you expect to see?
I expect the text to be clear.
Suggestion:
Additional context.
As @reyang pointed out, this might be a bigger issue since Exponential histograms do support negative numbers. Maybe a solution is to move the requirements with regards to the parameter of the Record operation of Histograms to the SDK metrics specification, so that we can have a definition for Explicit Bucket histograms and another for Exponential Histograms?
The text was updated successfully, but these errors were encountered: