Skip to content

Commit

Permalink
more changes
Browse files Browse the repository at this point in the history
  • Loading branch information
lalitb committed Dec 24, 2024
1 parent 6c84650 commit 1b5f52b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion opentelemetry-sdk/src/logs/log_processor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,10 @@ enum BatchMessage {
// - Attributes up to `PREALLOCATED_ATTRIBUTE_CAPACITY` are **stack-allocated**.
// - Exceeding attributes trigger **heap allocation** in a dynamically growing vector.
// - The `LogRecord` and its associated `InstrumentationScope` are **boxed together**
// to allocate them on the heap before entering the queue.
// to allocate them on the heap before entering the queue. Which means:
// - The entire `LogRecord` object, including its stack-allocated inline attributes, is moved to the heap.
// - Any overflow attributes already on the heap remain unaffected.

//
// 2. **Queue Management**:
// - Uses a **bounded synchronous channel** (`sync_channel`) with a maximum size defined by `max_queue_size`.
Expand Down

0 comments on commit 1b5f52b

Please sign in to comment.