opentelemetry-java
opentelemetry-java copied to clipboard
Allow histograms to record measurements with negative values
Describe the bug Looking at SdkDoubleHistogram.java we block negative values in histograms despite this being supported under exponential histograms (via negativebuckets).
Is this intentional or just a side effect of the standard storage of Histograms not permitting negative values?
Steps to reproduce
- Emit a negative histogram value
- Get a WARN
- Nothing emitted
What did you expect to see? Negative values supported
What did you see instead? Warning message
What version and what artifacts are you using? N/A
Environment N/A
Additional context Add any other context about the problem here.