diff --git a/specification/metrics/data-model.md b/specification/metrics/data-model.md index 1f59bfec7ae..d9bb8ad5f98 100644 --- a/specification/metrics/data-model.md +++ b/specification/metrics/data-model.md @@ -874,9 +874,9 @@ The reverse mapping function for positive scales is: ```golang // LowerBoundary computes the bucket boundary for positive scales. -func LowerBoundary(index int) float64 { +func LowerBoundary(index, scale int) float64 { inverseFactor := math.Ldexp(math.Ln2, -scale) - return math.Exp(index * inverseFactor), nil + return math.Exp(index * inverseFactor) } ``` @@ -890,11 +890,11 @@ reference implementation, for example, the above formula computes to subtract `1<