opentelemetry-java icon indicating copy to clipboard operation
opentelemetry-java copied to clipboard

Allow histograms to record measurements with negative values

Open callumj opened this issue 7 months ago • 2 comments

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.

callumj avatar Jul 19 '24 19:07 callumj