diff --git a/CHANGELOG.md b/CHANGELOG.md index daede6742ae..bfb9ffd1556 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -22,6 +22,7 @@ This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.htm - Fixes the instrument kind for noop async instruments. (#2461) - Change the `otlpmetric.Client` interface's `UploadMetrics` method to accept a single `ResourceMetrics` instead of a slice of them. (#2491) +- Specify explicit buckets in Prometheus example. (#2493) ## [1.3.0] - 2021-12-10 diff --git a/example/prometheus/main.go b/example/prometheus/main.go index 4ef0f2e89e2..8a1248a358e 100644 --- a/example/prometheus/main.go +++ b/example/prometheus/main.go @@ -38,7 +38,9 @@ var ( ) func initMeter() { - config := prometheus.Config{} + config := prometheus.Config{ + DefaultHistogramBoundaries: []float64{1, 2, 5, 10, 20, 50}, + } c := controller.New( processor.NewFactory( selector.NewWithHistogramDistribution(