Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 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
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ release.

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

### Baggage

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) - Languages that support exceptions SHOULD accept the following parameter:

- Exception (optional): An exception associated with the log record.
Comment thread
pellared marked this conversation as resolved.
Outdated
Comment thread
trask marked this conversation as resolved.
Outdated

### 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).
Comment thread
cijothomas marked this conversation as resolved.
Comment thread
pellared marked this conversation as resolved.

**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