File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed
opentelemetry-sdk/src/logs Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff 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`.
You can’t perform that action at this time.
0 commit comments