Skip to content

Commit

Permalink
Log record mutations are visible in next registered processors (open-…
Browse files Browse the repository at this point in the history
…telemetry#4067)

### Current description

Closes
open-telemetry#4065
  • Loading branch information
pellared authored Sep 4, 2024
1 parent 1d5afcf commit 4e40e67
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 4e40e67

Please sign in to comment.