You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Associate views with MeterProvider instead of Reader (#3387)
* Split WithView from WithReader
* Accept readers and views params in newPipelines
* Update MeterProvider pipes init
* Fix WithView comment
* Fix view example MeterProvider option
* Fix With{View,Reader} option in prom exporter test
* Test Reader not required to be comparable
* Add changes to changelog
* Fix changelog option name
Copy file name to clipboardExpand all lines: CHANGELOG.md
+12
Original file line number
Diff line number
Diff line change
@@ -8,9 +8,21 @@ This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.htm
8
8
9
9
## [Unreleased]
10
10
11
+
### Added
12
+
13
+
- The `WithView``Option` is added to the `go.opentelemetry.io/otel/sdk/metric` package.
14
+
This option is used to configure the view(s) a `MeterProvider` will use for all `Reader`s that are registered with it. (#3387)
15
+
16
+
### Changed
17
+
18
+
- The `"go.opentelemetry.io/otel/sdk/metric".WithReader` option no longer accepts views to associate with the `Reader`.
19
+
Instead, views are now registered directly with the `MeterProvider` via the new `WithView` option.
20
+
The views registered with the `MeterProvider` apply to all `Reader`s. (#3387)
21
+
11
22
### Fixed
12
23
13
24
- The `go.opentelemetry.io/otel/exporters/prometheus` exporter fixes duplicated `_total` suffixes. (#3369)
25
+
- Remove comparable requirement for `Reader`s. (#3387)
14
26
- Cumulative metrics from the OpenCensus bridge (`go.opentelemetry.io/otel/bridge/opencensus`) are defined as monotonic sums, instead of non-monotonic. (#3389)
15
27
- Asynchronous counters (`Counter` and `UpDownCounter`) from the metric SDK now produce delta sums when configured with delta temporality. (#3398)
16
28
- Exported `Status` codes in the `go.opentelemetry.io/otel/exporters/zipkin` exporter are now exported as all upper case values. (#3340)
0 commit comments