AspNetCoreModule
AspNetCoreModule copied to clipboard
App Insights data inaccurate when running out-of-process
We've noticed that when running App Insights on an ASP.Net core site in out-of-process, self-contained mode, a few of the Azure metrics and App Insight statistics are not measured. For example, here is some data from the App Insights Analytics tool, which is wrong. It shows 0 for every value. If I watch the "Live Metrics Stream" from the same time period, you can see a lot of requests coming through because of the additional logging we do.
Have you seen this before?

@joshmouch Does it work with using the installed framework instead of self-contained? (In case you tested this combination too.)
@pakrym any ideas?
App insights hosting startup will not work for self-contained. This might be the reason.
@pakrym I may off on the self-contained part. I'm compiling/publishing using .Net 4.7.2, not .Net Core. Does Self-contained vs. framework-dependent apply in that situation? If not then that's not the the reason.
I'm not sure how AI activation for ASP.NET Core works in .net 472
cc @clguimanMSFT
Actually this is also a self-contained app, the output of it is an exe that brings in all dependencies. It's not supported. Maybe it's time for ASPNetCore.Hosting to detect when it's running in a self-contained app and not load the HostingStartup assemblies.