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
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,17 @@
## Unreleased

* The `OpenTelemetryLoggerOptions.AddOtlpExporter` extension no longer
automatically set `OpenTelemetryLoggerOptions.ParseStateValues` to `true`.
automatically sets `OpenTelemetryLoggerOptions.ParseStateValues` to `true`.
The OpenTelemetry SDK now automatically sets `Attributes` (aka `StateValues`)
for the common cases where `ParseStateValues` was previously required.
`ParseStateValues` can be set to `true` manually by users to enable parsing of
custom states which do not implement `IReadOnlyList` / `IEnumerable`
interfaces.
([#4334](https://github.com/open-telemetry/opentelemetry-dotnet/pull/4334))

* Updated to use the new `LogRecord.Attributes` field as `StateValues` is now
marked obsolete.
* Updated to use the new `LogRecord.Attributes` field as `LogRecord.StateValues`
is now marked obsolete. There is no impact to transmitted data (`StateValues`
and `Attributes` are equivalent).
([#4334](https://github.com/open-telemetry/opentelemetry-dotnet/pull/4334))

## 1.5.0-alpha.2
Expand Down
9 changes: 7 additions & 2 deletions src/OpenTelemetry/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,13 @@
([#4375](https://github.com/open-telemetry/opentelemetry-dotnet/pull/4375))

* Tweaked the behavior of the `OpenTelemetryLoggerOptions.ParseStateValues`
flag, obsoleted `LogRecord.State` and `LogRecord.StateValues` properties, and
added `LogRecord.Body` and `LogRecord.Attributes` properties.
flag (attributes are now automatically included for most log messages by
default), obsoleted `LogRecord.State` and `LogRecord.StateValues` properties,
and added `LogRecord.Body` and `LogRecord.Attributes` properties.
([#4334](https://github.com/open-telemetry/opentelemetry-dotnet/pull/4334))

* If a template (`{OriginalFormat}` attribute) cannot be found on log messages a
formatted message will now automatically be generated.
([#4334](https://github.com/open-telemetry/opentelemetry-dotnet/pull/4334))

## 1.5.0-alpha.2
Expand Down