Skip to content

Commit 5cbf860

Browse files
committed
Update CHANGELOG
1 parent 4cf9e0f commit 5cbf860

File tree

2 files changed

+22
-0
lines changed

2 files changed

+22
-0
lines changed

opentelemetry-sdk/CHANGELOG.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,17 @@
88
- **BREAKING**: [#2217](https://github.com/open-telemetry/opentelemetry-rust/pull/2217)
99
- **Replaced**: Removed `{Delta,Cumulative}TemporalitySelector::new()` in favor of directly using `Temporality` enum to simplify the configuration of MetricExporterBuilder with different temporalities.
1010
- When creating new metric instruments, SDK would return a no-op instrument if the validation fails. [#2166](https://github.com/open-telemetry/opentelemetry-rust/pull/2166)
11+
- **Breaking change for Metrics users:** The `init` method used to create instruments has been renamed to `build`.
12+
13+
Before:
14+
```rust
15+
let counter = meter.u64_counter("my_counter").init();
16+
```
17+
18+
Now:
19+
```rust
20+
let counter = meter.u64_counter("my_counter").build();
21+
```
1122

1223
## v0.26.0
1324
Released 2024-Sep-30

opentelemetry/CHANGELOG.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,17 @@
1212
- Updated the return types of `InstrumentProvider` trait methods to return the instrument instead of a `Result`. [#2227](https://github.com/open-telemetry/opentelemetry-rust/pull/2227)
1313
- **Breaking change for exporter authors:** Marked `KeyValue` related structs and enums as `non_exhaustive`. [#2228](https://github.com/open-telemetry/opentelemetry-rust/pull/2228)
1414
- **Breaking change for log exporter authors:** Marked `AnyValue` enum as `non_exhaustive`. [#2230](https://github.com/open-telemetry/opentelemetry-rust/pull/2230)
15+
- **Breaking change for Metrics users:** The `init` method used to create instruments has been renamed to `build`.
16+
17+
Before:
18+
```rust
19+
let counter = meter.u64_counter("my_counter").init();
20+
```
21+
22+
Now:
23+
```rust
24+
let counter = meter.u64_counter("my_counter").build();
25+
```
1526

1627
## v0.26.0
1728
Released 2024-Sep-30

0 commit comments

Comments
 (0)