support for UseGoogleDiagnostics with CreateHostBuilder
See original GitHub issueThanks for stopping by to let us know something could be better!
Is your feature request related to a problem? Please describe.
as noted here https://docs.microsoft.com/en-us/aspnet/core/migration/22-to-30?view=aspnetcore-2.2&tabs=visual-studio, CreateHostBuilder
is the go-forward recommended approach in Program.cs, with CreateWebHostBuilder
being deprecated.
I am disappointed to find what appears to be no way to call UseGoogleDiagnostics
via CreateHostBuilder
.
Describe the solution you’d like Support for ASP.NET Core 3.0 recommended design next week instead of next year. (Can’t hurt for me to ask…)
Describe alternatives you’ve considered I thought about MS DOS 4.0 but cannot find the floppies.
Additional context I’ll send cute emoticons when my dreams are granted to me by the Google fairies.
Issue Analytics
- State:
- Created 4 years ago
- Comments:23 (7 by maintainers)
Yes, it is. But a web hosting model still exists for hosting ASP.NET Core web applications. Where as on 2.x these were two separated hosting models, in 3.0 the web hosting model has been re-platted on the generic hosting model. So there is a generic host and the web host now builds on top of that as some sort of extension rather than a separate model.
What I meant by that was that we don’t necessarily need an extension method on
IHostBuilder
but instead keep leveraging the extension onIWebHostBuilder
and call that from insideConfigureWebHostDefaults()
. I also think having an extension method on the genericIHostBuilder
doesn’t make a lot of sense for a logger which uses ASP.NET Core concepts and hooks into the HTTP pipeline like this library.Best to wait for the moment, I think - maybe subscribe to #3215, and you could always fork that branch and try it that way?