question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

support for UseGoogleDiagnostics with CreateHostBuilder

See original GitHub issue

Thanks 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:closed
  • Created 4 years ago
  • Comments:23 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
henkmollemacommented, Jul 25, 2019

But Host is the generic host, is it not?

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.

Confused as to what you meant, having offered up code that supports the generic host but then words that indicated you didn’t think that was necessary

What I meant by that was that we don’t necessarily need an extension method on IHostBuilder but instead keep leveraging the extension on IWebHostBuilder and call that from inside ConfigureWebHostDefaults(). I also think having an extension method on the generic IHostBuilder 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.

1reaction
jskeetcommented, Jul 24, 2019

Best to wait for the moment, I think - maybe subscribe to #3215, and you could always fork that branch and try it that way?

Read more comments on GitHub >

github_iconTop Results From Across the Web

NET Generic Host in ASP.NET Core
This article provides information on using the .NET Generic Host in ASP.NET Core. The ASP.NET Core templates create a WebApplicationBuilder ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found