From 9708a262b068644ac19b11cf05a792406afd4e64 Mon Sep 17 00:00:00 2001 From: Shawn <18649508+NOBLES5E@users.noreply.github.com> Date: Thu, 11 Jul 2024 18:09:03 +0000 Subject: [PATCH 1/2] Update CHANGELOG.md --- opentelemetry-sdk/CHANGELOG.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/opentelemetry-sdk/CHANGELOG.md b/opentelemetry-sdk/CHANGELOG.md index 61d99a629b..20fde9ad9a 100644 --- a/opentelemetry-sdk/CHANGELOG.md +++ b/opentelemetry-sdk/CHANGELOG.md @@ -23,7 +23,7 @@ lifetime issues. Any changes made to the log data before cloning in this method will be reflected in the next log processor in the chain, as well as to the exporter. - **Breaking** [1726](https://github.com/open-telemetry/opentelemetry-rust/pull/1726) - Update `LogExporter::export() method to accept a batch of log data, which can be either a + Update `LogExporter::export()` method to accept a batch of log data, which can be either a reference or owned`LogData`. If the exporter needs to process the log data asynchronously, it should clone the log data to ensure it can be safely processed without lifetime issues. From 3bd1cd26473211243dc1a451426bb5fa9ab004c5 Mon Sep 17 00:00:00 2001 From: Shawn <18649508+NOBLES5E@users.noreply.github.com> Date: Thu, 11 Jul 2024 18:15:33 +0000 Subject: [PATCH 2/2] Update CHANGELOG.md --- opentelemetry-sdk/CHANGELOG.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/opentelemetry-sdk/CHANGELOG.md b/opentelemetry-sdk/CHANGELOG.md index 20fde9ad9a..88e303a9ac 100644 --- a/opentelemetry-sdk/CHANGELOG.md +++ b/opentelemetry-sdk/CHANGELOG.md @@ -17,7 +17,7 @@ `RwLock` instead of `Mutex` to reduce contention - **Breaking** [1726](https://github.com/open-telemetry/opentelemetry-rust/pull/1726) - Update `LogProcessor::emit() method to take mutable reference to LogData. This is breaking + Update `LogProcessor::emit()` method to take mutable reference to LogData. This is breaking change for LogProcessor developers. If the processor needs to invoke the exporter asynchronously, it should clone the data to ensure it can be safely processed without lifetime issues. Any changes made to the log data before cloning in this method will be