You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: opentelemetry-sdk/src/export/logs/mod.rs
+4-6Lines changed: 4 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -23,12 +23,11 @@ pub struct LogBatch<'a> {
23
23
24
24
/// The `LogBatchData` enum represents the data field of a `LogBatch`.
25
25
/// It can either be:
26
-
/// - A shared reference to a vector of tuples, where each tuple consists of a `LogRecord` and an `InstrumentationScope`.
27
-
/// - Or it can be a slice of tuples, where each tuple consists of a reference to a `LogRecord` and a reference to an `InstrumentationScope`.
26
+
/// - A shared reference to a slice of tuples, where each tuple consists of an owned `LogRecord` and an owned `InstrumentationScope`.
27
+
/// - Or it can be a shared reference to a slice of tuples, where each tuple consists of a reference to a `LogRecord` and a reference to an `InstrumentationScope`.
28
28
#[derive(Debug)]
29
-
#[allow(clippy::vec_box)]// Clippy complains about using Box in a Vec, but it's done here for performant moves of the data between channel and the vec.
30
29
enumLogBatchData<'a>{
31
-
BorrowedVec(&'aVec<Box<(LogRecord,InstrumentationScope)>>),// Used by BatchProcessor which clones the LogRecords for its own use.
30
+
BorrowedVec(&'a[Box<(LogRecord,InstrumentationScope)>]),// Used by BatchProcessor which clones the LogRecords for its own use.
#[allow(clippy::vec_box)]// Clippy complains about using Box in a Vec, but it's done here for performant moves of the data between channel and the vec.
0 commit comments