Skip to content

Commit

Permalink
fix specify explicit buckets in example (#2493)
Browse files Browse the repository at this point in the history
* fix specify explicit buckets in example

* add changelog

* Update CHANGELOG.md

Co-authored-by: Anthony Mirabella <a9@aneurysm9.com>

Co-authored-by: Anthony Mirabella <a9@aneurysm9.com>
  • Loading branch information
hanyuancheung and Aneurysm9 authored Jan 4, 2022
1 parent 4b815ff commit 1c1e846
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
4 changes: 3 additions & 1 deletion example/prometheus/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit 1c1e846

Please sign in to comment.