From c898c54de0b422c9057444bde9754dd4be2d0ad7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20Paj=C4=85k?= Date: Thu, 25 Jul 2024 19:27:21 +0200 Subject: [PATCH] Describe when deep cloning may be useful --- specification/logs/sdk.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/specification/logs/sdk.md b/specification/logs/sdk.md index 93f1e51ba47..eadd5a597d2 100644 --- a/specification/logs/sdk.md +++ b/specification/logs/sdk.md @@ -236,6 +236,10 @@ the following information added to the [LogRecord](data-model.md#log-and-event-r * [`TraceFlags`](./data-model.md#field-traceflags) The SDK MAY provide an operation that makes a deep clone of a `ReadWriteLogRecord`. +The operation can be used to implement the [isolating processor](#isolating-processor) +or by asynchronous processors (e.g. [Batching processor](#batching-processor)) +to avoid race conditions on the log record that is not required to be +concurrent safe. ## LogRecord Limits