Skip to content
Merged
Show file tree
Hide file tree
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@ release.

### Logs

- Add optional `Exception` parameter to Emit LogRecord.
([#4824](https://github.com/open-telemetry/opentelemetry-specification/pull/4824))

### Baggage

### Profiles
Expand Down
4 changes: 4 additions & 0 deletions specification/logs/api.md
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,10 @@ The API MUST accept the following parameters:
- [Attributes](./data-model.md#field-attributes) (optional)
- [Event Name](./data-model.md#field-eventname) (optional)

**Status**: [Development](../document-status.md) - The API MAY accept the following parameter:

- Exception (optional): An exception (or error) associated with the log record.

### Enabled

To help users avoid performing computationally expensive operations when
Expand Down
5 changes: 5 additions & 0 deletions specification/logs/sdk.md
Original file line number Diff line number Diff line change
Expand Up @@ -224,6 +224,11 @@ However, the changes MUST be eventually visible.
If [Observed Timestamp](./data-model.md#field-observedtimestamp) is unspecified,
the implementation SHOULD set it equal to the current time.

**Status**: [Development](../document-status.md) - If an
[Exception](api.md#emit-a-logrecord) is provided, the SDK MUST by default set attributes
from the exception on the `LogRecord` with the conventions outlined in the
[exception semantic conventions](https://github.com/open-telemetry/semantic-conventions/blob/main/docs/exceptions/exceptions-logs.md).

**Status**: [Development](../document-status.md) Before processing a log record,
the implementation MUST apply the filtering rules defined by the
[LoggerConfig](#loggerconfig) (in case `Enabled` was not called prior to
Expand Down
Loading