Skip to content

Commit 540c6f1

Browse files
authored
Few fixes to changelog for breaking changes (#2287)
1 parent 52f6d92 commit 540c6f1

File tree

3 files changed

+26
-24
lines changed

3 files changed

+26
-24
lines changed

opentelemetry-otlp/CHANGELOG.md

Lines changed: 19 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,6 @@
22

33
## vNext
44

5-
## v0.26.0
6-
Released 2024-Sep-30
7-
8-
- Update `opentelemetry` dependency version to 0.26
9-
- Update `opentelemetry_sdk` dependency version to 0.26
10-
- Update `opentelemetry-http` dependency version to 0.26
11-
- Update `opentelemetry-proto` dependency version to 0.26
12-
- Bump MSRV to 1.71.1 [2140](https://github.com/open-telemetry/opentelemetry-rust/pull/2140)
135
- **BREAKING**:
146
- ([#2217](https://github.com/open-telemetry/opentelemetry-rust/pull/2217)) **Replaced**: The `MetricsExporterBuilder` interface is modified from `with_temporality_selector` to `with_temporality` example can be seen below:
157
Previous Signature:
@@ -31,6 +23,7 @@ Released 2024-Sep-30
3123
```rust
3224
let logger_provider: LoggerProvider = opentelemetry_otlp::new_pipeline()
3325
.logging()
26+
.with_resource(RESOURCE.clone())
3427
.with_exporter(
3528
opentelemetry_otlp::new_exporter()
3629
.tonic()
@@ -40,13 +33,15 @@ Released 2024-Sep-30
4033
```
4134
Updated Signature:
4235
```rust
43-
let logger_provider: LoggerProvider = LoggerProvider::builder()
44-
.install_batch_exporter(
45-
LogExporter::builder()
46-
.with_tonic()
47-
.with_endpoint("http://localhost:4317")
48-
.build()?,
49-
).build();
36+
let exporter = LogExporter::builder()
37+
.with_tonic()
38+
.with_endpoint("http://localhost:4317")
39+
.build()?;
40+
41+
Ok(LoggerProvider::builder()
42+
.with_resource(RESOURCE.clone())
43+
.with_batch_exporter(exporter, runtime::Tokio)
44+
.build())
5045
```
5146
- **Renamed**
5247
- ([#2255](https://github.com/open-telemetry/opentelemetry-rust/pull/2255)): de-pluralize Metric types.
@@ -56,6 +51,15 @@ Released 2024-Sep-30
5651
- [#2263](https://github.com/open-telemetry/opentelemetry-rust/pull/2263)
5752
Support `hyper` client for opentelemetry-otlp. This can be enabled using flag `hyper-client`.
5853
Refer example: https://github.com/open-telemetry/opentelemetry-rust/tree/main/opentelemetry-otlp/examples/basic-otlp-http
54+
55+
## v0.26.0
56+
Released 2024-Sep-30
57+
58+
- Update `opentelemetry` dependency version to 0.26
59+
- Update `opentelemetry_sdk` dependency version to 0.26
60+
- Update `opentelemetry-http` dependency version to 0.26
61+
- Update `opentelemetry-proto` dependency version to 0.26
62+
- Bump MSRV to 1.71.1 [2140](https://github.com/open-telemetry/opentelemetry-rust/pull/2140)
5963

6064
## v0.25.0
6165

opentelemetry-sdk/CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
- Bump MSRV to 1.70 [#2179](https://github.com/open-telemetry/opentelemetry-rust/pull/2179)
66
- Implement `LogRecord::set_trace_context` for `LogRecord`. Respect any trace context set on a `LogRecord` when emitting through a `Logger`.
77
- Improved `LoggerProvider` shutdown handling to prevent redundant shutdown calls when `drop` is invoked. [#2195](https://github.com/open-telemetry/opentelemetry-rust/pull/2195)
8-
- 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)
8+
- When creating new metric instruments by calling `build()`, SDK would return a no-op instrument if the validation fails (eg: Invalid metric name). [#2166](https://github.com/open-telemetry/opentelemetry-rust/pull/2166)
99
- **BREAKING for Metrics users**:
1010
- **Replaced**
1111
- ([#2217](https://github.com/open-telemetry/opentelemetry-rust/pull/2217)): Removed `{Delta,Cumulative}TemporalitySelector::new()` in favor of directly using `Temporality` enum to simplify the configuration of MetricsExporterBuilder with different temporalities.

opentelemetry/CHANGELOG.md

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,9 @@
88
- Introduced `SyncInstrument` trait to replace the individual synchronous instrument traits (`SyncCounter`, `SyncGauge`, `SyncHistogram`, `SyncUpDownCounter`) which are meant for SDK implementation. [#2207](https://github.com/open-telemetry/opentelemetry-rust/pull/2207)
99
- Ensured that `observe` method on asynchronous instruments can only be called inside a callback. This was done by removing the implementation of `AsyncInstrument` trait for each of the asynchronous instruments. [#2210](https://github.com/open-telemetry/opentelemetry-rust/pull/2210)
1010
- Removed `PartialOrd` and `Ord` implementations for `KeyValue`. [#2215](https://github.com/open-telemetry/opentelemetry-rust/pull/2215)
11-
- **Breaking change** Removed `try_init` methods from the instrument builders. Users should only use `init` method to create instruments. [#2227](https://github.com/open-telemetry/opentelemetry-rust/pull/2227)
12-
- 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)
1311
- **Breaking change for exporter authors:** Marked `KeyValue` related structs and enums as `non_exhaustive`. [#2228](https://github.com/open-telemetry/opentelemetry-rust/pull/2228)
1412
- **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`.
13+
- **Breaking change for Metrics users:** The `init` method used to create instruments has been renamed to `build`. Also, `try_init()` method is removed from instrument builders. The return types of `InstrumentProvider` trait methods modified to return the instrument struct, instead of `Result`. [#2227](https://github.com/open-telemetry/opentelemetry-rust/pull/2227)
1614

1715
Before:
1816
```rust
@@ -32,16 +30,16 @@ let counter = meter.u64_counter("my_counter").build();
3230
- Replaced these methods with `LoggerProvider::logger_with_scope`, `TracerProvider::logger_with_scope`, `MeterProvider::meter_with_scope`
3331
- Replaced `global::meter_with_version` with `global::meter_with_scope`
3432
- Added `global::tracer_with_scope`
33+
- Refer to PR description for migration guide.
34+
- **Breaking change**: replaced `InstrumentationScope` public attributes by getters [#2275](https://github.com/open-telemetry/opentelemetry-rust/pull/2275)
3535

3636
- **Breaking change**: [#2260](https://github.com/open-telemetry/opentelemetry-rust/pull/2260)
3737
- Removed `global::set_error_handler` and `global::handle_error`.
3838
- `global::handle_error` usage inside the opentelemetry crates has been replaced with `global::otel_info`, `otel_warn`, `otel_debug` and `otel_error` macros based on the severity of the internal logs.
39-
- The default behavior of `global::handle_error` was to log the error using `eprintln!`. With otel macro, the internal logs get emitted via `tracing` macros of matching severity. Users now need to configure the `tracing` layer to capture these logs.
40-
- Refer to this PR description for migration guide. Also refer to [self-diagnostics](https://github.com/open-telemetry/opentelemetry-rust/tree/main/examples/self-diagnostics) example on how to configure the tracing layer for internal logs.
41-
- **Breaking change**: replaced `InstrumentationScope` public attributes by getters [#2275](https://github.com/open-telemetry/opentelemetry-rust/pull/2275)
39+
- The default behavior of `global::handle_error` was to log the error using `eprintln!`. With otel macros, the internal logs get emitted via `tracing` macros of matching severity. Users now need to configure a `tracing` layer/subscriber to capture these logs.
40+
- Refer to PR description for migration guide. Also refer to [self-diagnostics](https://github.com/open-telemetry/opentelemetry-rust/tree/main/examples/self-diagnostics) example to learn how to view internal logs in stdout using `tracing::fmt` layer.
4241

43-
44-
- [#2266](https://github.com/open-telemetry/opentelemetry-rust/pull/2266)
42+
- **Breaking change for exporter/processor authors:** [#2266](https://github.com/open-telemetry/opentelemetry-rust/pull/2266)
4543
- Moved `ExportError` trait from `opentelemetry::ExportError` to `opentelemetry_sdk::export::ExportError`
4644
- Created new trait `opentelemetry::trace::ExportError` for trace API. This would be eventually be consolidated with ExportError in the SDK.
4745
- Moved `LogError` enum from `opentelemetry::logs::LogError` to `opentelemetry_sdk::logs::LogError`

0 commit comments

Comments
 (0)