-
Notifications
You must be signed in to change notification settings - Fork 765
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
[di] Expose a detached LoggerProviderBuilder extension on IServiceCollection which may modify services #4531
[di] Expose a detached LoggerProviderBuilder extension on IServiceCollection which may modify services #4531
Conversation
…on which may modify services.
/// </summary> | ||
internal sealed class LoggerProviderServiceCollectionBuilder : LoggerProviderBuilder, ILoggerProviderBuilder | ||
internal sealed class LoggerProviderBuilderBase : LoggerProviderBuilder, ILoggerProviderBuilder |
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.
Originally when this was added you commented that you would prefer it was named LoggerProviderBuilderBase
so it matched tracing & metrics. Just FYI it ended up being exactly that 😄
* Added an `IServiceCollection.ConfigureOpenTelemetryMeterProvider` overload | ||
which may be used to configure `MeterProviderBuilder`s while the | ||
`IServiceCollection` is modifiable (before the `IServiceProvider` has been | ||
created). | ||
([#4517](https://github.com/open-telemetry/opentelemetry-dotnet/pull/4517)) | ||
|
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.
Merge issue from #4517
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## main #4531 +/- ##
==========================================
+ Coverage 85.31% 85.38% +0.07%
==========================================
Files 319 320 +1
Lines 12634 12647 +13
==========================================
+ Hits 10779 10799 +20
+ Misses 1855 1848 -7
|
…lection which may modify services (open-telemetry#4531) Co-authored-by: Alan West <[email protected]>
Relates to #4517
Changes
IServiceCollection.ConfigureOpenTelemetryLoggerProvider
extension which doesn't requireIServiceProvider
and allows forIServiceCollection
modification.Merge requirement checklist