Skip to content

Commit

Permalink
Describe when deep cloning may be useful
Browse files Browse the repository at this point in the history
  • Loading branch information
pellared committed Jul 25, 2024
1 parent b80e89d commit c898c54
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions specification/logs/sdk.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit c898c54

Please sign in to comment.