Skip to content
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

[sdk-1.5.0-hotfix] Removed support for parsing custom log states using reflection #4614

Merged

Conversation

CodeBlanch
Copy link
Member

@CodeBlanch CodeBlanch commented Jun 26, 2023

[Greetings 👋 If you have landed on this PR from the CHANGELOG entry and were using the parsing feature or have a need for such a feature please drop a comment. We have options/ideas for how we could put this feature back in a way that would be compatible with AOT but prioritization of that effort will be based largely on feedback.]

Note: This PR is targeting main-1.5.0 branch.

Relates to #4609
See #4609 (comment)

Changes

  • Removes the support for parsing custom states passed to ILogger.Log<TState> which do not implement the expected interfaces.

Merge requirement checklist

  • CONTRIBUTING guidelines followed (nullable enabled, static analysis, etc.)
  • Unit tests added/updated
  • Appropriate CHANGELOG.md files updated for non-trivial changes

@CodeBlanch CodeBlanch requested a review from a team June 26, 2023 17:51
@codecov
Copy link

codecov bot commented Jun 26, 2023

Codecov Report

Merging #4614 (ec16764) into main-1.5.0 (ae03840) will decrease coverage by 0.01%.
The diff coverage is 100.00%.

Additional details and impacted files

Impacted file tree graph

@@              Coverage Diff               @@
##           main-1.5.0    #4614      +/-   ##
==============================================
- Coverage       85.60%   85.59%   -0.01%     
==============================================
  Files             320      320              
  Lines           12620    12617       -3     
==============================================
- Hits            10803    10800       -3     
  Misses           1817     1817              
Impacted Files Coverage Δ
...lemetry/Logs/ILogger/OpenTelemetryLoggerOptions.cs 85.00% <ø> (ø)
...nTelemetry/Internal/OpenTelemetrySdkEventSource.cs 81.55% <100.00%> (+1.34%) ⬆️
.../OpenTelemetry/Logs/ILogger/OpenTelemetryLogger.cs 90.09% <100.00%> (+1.81%) ⬆️

... and 6 files with indirect coverage changes

Assert.Equal(43, warnings.Count());
Assert.Equal(42, warnings.Count());
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🎉

Copy link
Contributor

@utpilla utpilla left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Left some minor suggestions.

@CodeBlanch CodeBlanch merged commit b03e031 into open-telemetry:main-1.5.0 Jun 26, 2023
@CodeBlanch CodeBlanch deleted the main-1.5.0-logginghotfix-part2 branch June 26, 2023 20:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants