in opentelemetry_collector/receiver/metricgenerator/metric_generator.go [37:49]
func MakeExponentialBucketOptions(boundsBase, maxExponent float64) *metricspb.DistributionValue_BucketOptions {
bounds := make([]float64, 0, int(maxExponent))
for i := float64(0); i <= maxExponent; i++ {
bounds = append(bounds, math.Pow(boundsBase, i))
}
return &metricspb.DistributionValue_BucketOptions{
Type: &metricspb.DistributionValue_BucketOptions_Explicit_{
Explicit: &metricspb.DistributionValue_BucketOptions_Explicit{
Bounds: bounds,
},
},
}
}