Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions opentelemetry-proto/src/transform/logs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@
.collect(),
}),
LogsAnyValue::Bytes(v) => Value::BytesValue(*v),
_ => unreachable!("Nonexistent value type"),

Check warning on line 54 in opentelemetry-proto/src/transform/logs.rs

View check run for this annotation

Codecov / codecov/patch

opentelemetry-proto/src/transform/logs.rs#L54

Added line #L54 was not covered by tests
}
}
}
Expand Down
1 change: 1 addition & 0 deletions opentelemetry-stdout/src/common.rs
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,7 @@
.collect(),
),
opentelemetry::logs::AnyValue::Bytes(b) => Value::BytesValue(*b),
_ => unreachable!("Nonexistent value type"),

Check warning on line 172 in opentelemetry-stdout/src/common.rs

View check run for this annotation

Codecov / codecov/patch

opentelemetry-stdout/src/common.rs#L172

Added line #L172 was not covered by tests
}
}
}
Expand Down
1 change: 1 addition & 0 deletions opentelemetry/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
- 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)
- 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)
- Removed `PartialOrd` and `Ord` implementations for `KeyValue`. [#2215](https://github.com/open-telemetry/opentelemetry-rust/pull/2215)
- - **Breaking change for log exporter authors:** Marked `AnyValue` enum as `non_exhaustive`. [#2230](https://github.com/open-telemetry/opentelemetry-rust/pull/2230)

## v0.26.0
Released 2024-Sep-30
Expand Down
1 change: 1 addition & 0 deletions opentelemetry/src/logs/record.rs
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ pub trait LogRecord {

/// Value types for representing arbitrary values in a log record.
#[derive(Debug, Clone, PartialEq)]
#[non_exhaustive]
pub enum AnyValue {
/// An integer value
Int(i64),
Expand Down
Loading