diff --git a/CHANGELOG.md b/CHANGELOG.md index ac292d638da..e66abbae8ef 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -21,6 +21,9 @@ release. ### Logs +- Clarify that log record mutations are visible in next registered processors. + ([#4067](https://github.com/open-telemetry/opentelemetry-specification/pull/4067)) + ### Events ### Baggage diff --git a/specification/logs/sdk.md b/specification/logs/sdk.md index eadd5a597d2..ffee0340458 100644 --- a/specification/logs/sdk.md +++ b/specification/logs/sdk.md @@ -324,6 +324,9 @@ therefore it SHOULD NOT block or throw exceptions. **Returns:** `Void` +For a `LogRecordProcessor` registered directly on SDK `LoggerProvider`, +the `logRecord` mutations MUST be visible in next registered processors. + A `LogRecordProcessor` may freely modify `logRecord` for the duration of the `OnEmit` call. If `logRecord` is needed after `OnEmit` returns (i.e. for asynchronous processing) only reads are permitted.