opentelemetry-java
opentelemetry-java copied to clipboard
Default bucket boundaries for explicit bucket histogram are different from specification
The java default explicit bucket histogram bucket boundaries are:
[5, 10, 25, 50, 75, 100, 250, 500, 750, 1_000, 2_500, 5_000, 7_500, 10_000]
But according to the spec should be:
[ 0, 5, 10, 25, 50, 75, 100, 250, 500, 1_000 ]
The spec has changed the default boundaries to [ 0, 5, 10, 25, 50, 75, 100, 250, 500, 750, 1000, 2500, 5000, 7500, 10000 ]
.
Note that the only difference between the new defaults and our current defaults is that the spec has a 0
bucket. We should be able to add this bucket without issue because negative values currently aren't allowed so adding it should be functionally equivalent to what we currently do.