Skip to content

Commit 138e53d

Browse files
committed
Code changes
1 parent 015ea09 commit 138e53d

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

opentelemetry/CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
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 for exporter authors:** Marked `KeyValue` related structs and enums as `non_exhaustive`. [#2228](https://github.com/open-telemetry/opentelemetry-rust/pull/2228)
1112

1213
## v0.26.0
1314
Released 2024-Sep-30

opentelemetry/src/common.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -376,6 +376,7 @@ impl fmt::Display for Value {
376376

377377
/// A key-value pair describing an attribute.
378378
#[derive(Clone, Debug, PartialEq)]
379+
#[non_exhaustive]
379380
pub struct KeyValue {
380381
/// The attribute name
381382
pub key: Key,

0 commit comments

Comments
 (0)