Skip to content

Commit 1b5f52b

Browse files
committed
more changes
1 parent 6c84650 commit 1b5f52b

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

opentelemetry-sdk/src/logs/log_processor.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,10 @@ enum BatchMessage {
178178
// - Attributes up to `PREALLOCATED_ATTRIBUTE_CAPACITY` are **stack-allocated**.
179179
// - Exceeding attributes trigger **heap allocation** in a dynamically growing vector.
180180
// - The `LogRecord` and its associated `InstrumentationScope` are **boxed together**
181-
// to allocate them on the heap before entering the queue.
181+
// to allocate them on the heap before entering the queue. Which means:
182+
// - The entire `LogRecord` object, including its stack-allocated inline attributes, is moved to the heap.
183+
// - Any overflow attributes already on the heap remain unaffected.
184+
182185
//
183186
// 2. **Queue Management**:
184187
// - Uses a **bounded synchronous channel** (`sync_channel`) with a maximum size defined by `max_queue_size`.

0 commit comments

Comments
 (0)