Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 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
4 changes: 4 additions & 0 deletions opentelemetry-sdk/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,10 @@
async fn export(&self, _batch: LogBatch<'_>) -> LogResult<()>
Custom exporters will need to internally synchronize any mutable state, if applicable.

- *Breaking* Removed the following deprecated struct:
- logs::LogData - Previously deprecated in version 0.27.1
Migration Guidance: This structure is no longer utilized within the SDK, and users should not have dependencies on it.

## 0.27.1

Released 2024-Nov-27
Expand Down
15 changes: 1 addition & 14 deletions opentelemetry-sdk/src/logs/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,29 +10,16 @@ pub use log_processor::{
BatchConfig, BatchConfigBuilder, BatchLogProcessor, BatchLogProcessorBuilder, LogProcessor,
SimpleLogProcessor,
};
use opentelemetry::InstrumentationScope;
pub use record::{LogRecord, TraceContext};

#[deprecated(
since = "0.27.1",
note = "The struct is not used anywhere in the SDK and will be removed in the next major release."
)]
/// `LogData` represents a single log event without resource context.
#[derive(Clone, Debug)]
pub struct LogData {
/// Log record
pub record: LogRecord,
/// Instrumentation details for the emitter who produced this `LogEvent`.
pub instrumentation: InstrumentationScope,
}

#[cfg(all(test, feature = "testing"))]
mod tests {
use super::*;
use crate::testing::logs::InMemoryLogExporter;
use crate::Resource;
use opentelemetry::logs::LogRecord;
use opentelemetry::logs::{Logger, LoggerProvider as _, Severity};
use opentelemetry::InstrumentationScope;
use opentelemetry::{logs::AnyValue, Key, KeyValue};
use std::borrow::Borrow;
use std::collections::HashMap;
Expand Down