-
Notifications
You must be signed in to change notification settings - Fork 780
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
Bump Microsoft.Extensions.Logging to net8 #4920
Conversation
Codecov Report
@@ Coverage Diff @@
## main #4920 +/- ##
==========================================
- Coverage 83.44% 83.29% -0.16%
==========================================
Files 295 295
Lines 12324 12324
==========================================
- Hits 10284 10265 -19
- Misses 2040 2059 +19
Flags with carried forward coverage won't be shown. Click here to find out more. |
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.
@reyang, this kind of PRs are killing possibility of using Automatic Instrumentation without including it in build pipeline on .NET. .NET Framework is still pretty safe (after we make a release with stable reference to the newly released library version).
2) Each minor version bump is normally security hotfixes or critical bug fixes.
Based on https://www.nuget.org/packages/Microsoft.Extensions.Logging/#versions-body-tab there is no security issue in any 3.1.x release. The same is for 6.0.0 and 7.0.0.
So we have only critical bug fixes from 3.1.x.
As I remember the package is part of the .NET 6+ and even if your application is referencing 3.1.0 it will be implicitly bumped to the version included in .NET.
Based on this, it should be safe to update dependency to 6.0.0 (I assume that it includes all critical fixes).
IMO EventId auto-generation is not good enough reason to update now, We can consider doing it when .NET6 reach EOL: November 12, 2024. It can be potentially done for release synced with .NET9.
FYI: @open-telemetry/dotnet-instrumentation-maintainers
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.
I wasn't sure how some of the nullability and Http reference changes related to M.E.Logging, but no qualms with them.
@Kielek would you provide some context here? For example, we're already doing the same thing for opentelemetry-dotnet/Directory.Packages.props Lines 33 to 42 in dc1f09d
How does auto-instrumention solve the |
Co-authored-by: Noah Falk <noahfalk@users.noreply.github.com>
Related to #3205.
This is essentially the same thing as #4550.