Skip to content

Commit 0e3511e

Browse files
Copilotcijothomas
andauthored
feat: Add Clone implementation to SdkLogger for API consistency with SdkTracer (#3072)
Co-authored-by: Cijo Thomas <[email protected]>
1 parent 0631070 commit 0e3511e

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

opentelemetry-sdk/CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
- TODO: Placeholder for Span processor related things
66
- *Fix* SpanProcessor::on_start is no longer called on non recording spans
77
- **Fix**: Restore true parallel exports in the async-native `BatchSpanProcessor` by honoring `OTEL_BSP_MAX_CONCURRENT_EXPORTS` ([#2959](https://github.com/open-telemetry/opentelemetry-rust/pull/3028)). A regression in [#2685](https://github.com/open-telemetry/opentelemetry-rust/pull/2685) inadvertently awaited the `export()` future directly in `opentelemetry-sdk/src/trace/span_processor_with_async_runtime.rs` instead of spawning it on the runtime, forcing all exports to run sequentially.
8+
- **Feature**: Added `Clone` implementation to `SdkLogger` for API consistency with `SdkTracer` ([#3058](https://github.com/open-telemetry/opentelemetry-rust/issues/3058)).
89

910
## 0.30.0
1011

opentelemetry-sdk/src/logs/logger.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ use opentelemetry::{trace::TraceContextExt, Context, InstrumentationScope};
55
use opentelemetry::logs::Severity;
66
use opentelemetry::time::now;
77

8-
#[derive(Debug)]
8+
#[derive(Debug, Clone)]
99
/// The object for emitting [`LogRecord`]s.
1010
///
1111
/// [`LogRecord`]: opentelemetry::logs::LogRecord

0 commit comments

Comments
 (0)