Skip to content

Commit 24797bb

Browse files
committed
doc ci
1 parent 1282bfc commit 24797bb

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

opentelemetry-sdk/src/logs/log_processor.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -263,6 +263,7 @@ type LogsData = Box<(LogRecord, InstrumentationScope)>;
263263
/// let provider = LoggerProvider::builder()
264264
/// .with_log_processor(processor)
265265
/// .build();
266+
/// ```
266267
///
267268
/// **Memory Management in BatchLogProcessor**
268269
///
@@ -272,7 +273,7 @@ type LogsData = Box<(LogRecord, InstrumentationScope)>;
272273
/// - Each `LogRecord` is **cloned** upon entering the processor.
273274
/// - `LogRecordAttributes` utilize a hybrid memory model:
274275
/// - First 5 attributes are **stack-allocated**.
275-
/// - Adding additional attribtues trigger **heap allocation** in a dynamically growing vector.
276+
/// - Adding additional attributes trigger **heap allocation** in a dynamically growing vector.
276277
/// - The `LogRecord` and its associated `InstrumentationScope` are **boxed together**
277278
/// to allocate them on the heap before entering the queue. This means:
278279
/// - The `LogRecord`'s inline attributes (if any) are moved to the heap as part of the boxed structure.

0 commit comments

Comments
 (0)