Skip to content

Commit

Permalink
Log record mutations are visible in next registered processors (#4067)
Browse files Browse the repository at this point in the history
### Current description

Closes
#4065
  • Loading branch information
pellared committed Sep 4, 2024
1 parent e9a2b00 commit 42dd11a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 3 additions & 0 deletions specification/logs/sdk.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 42dd11a

Please sign in to comment.