Add code to track the various phases of application startup and report them to Application Insights as events, or maybe a single event with each stage's time as a property.
Stages:
Start timing at 1st line in Program.Main
WebHost building
DI container building (time between Startup.ConfigureServices returning and Startup.Configure entering
Add code to track the various phases of application startup and report them to Application Insights as events, or maybe a single event with each stage's time as a property.
Stages:
Program.Main
WebHost
buildingStartup.ConfigureServices
returning andStartup.Configure
entering