Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[AOT] Removed support for ParseStateValues if the state neither implements IReadOnlyList nor IEnumberable when
ParseStateValues
is true. #4560[AOT] Removed support for ParseStateValues if the state neither implements IReadOnlyList nor IEnumberable when
ParseStateValues
is true. #4560Changes from 19 commits
d59c258
3413cfb
715ad28
a74ed86
ea364a4
af5df9f
1e17473
f018b04
4b19d17
aa0f470
7ff4a77
5050f6f
136cec1
7e60a6c
c005f46
6f528ce
5daab01
9589b76
9089a63
aff152f
cbdef79
90771fe
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Update the documentation of
ParseStateValues
option to reflect this change.opentelemetry-dotnet/src/OpenTelemetry/Logs/ILogger/OpenTelemetryLoggerOptions.cs
Lines 53 to 70 in bd0d8d6
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just FYI removing this code
ParseStateValues
essentially does nothing. Should we obsolete it?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That would break build for users who have used this option in their Logs SDK setup, right?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
#4334 redefines
ParseStateValues
.With the redefined
ParseStateValues
, value ofpublic bool ParseStateValues { get; set; }
is default to false and only should be set to true if state does not implement either IReadOnlyList or IEnumerable if users want to get the properties with Reflection.Shall we obsolete this API in this PR or use a follow-up PR for that?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It should be its own PR (if at all we decide to do that).