AspNetCoreModule icon indicating copy to clipboard operation
AspNetCoreModule copied to clipboard

App Insights data inaccurate when running out-of-process

Open joshmouch opened this issue 6 years ago • 5 comments

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?

image

joshmouch avatar Dec 18 '18 14:12 joshmouch

@joshmouch Does it work with using the installed framework instead of self-contained? (In case you tested this combination too.)

@pakrym any ideas?

muratg avatar Dec 18 '18 16:12 muratg

App insights hosting startup will not work for self-contained. This might be the reason.

pakrym avatar Dec 18 '18 16:12 pakrym

@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.

joshmouch avatar Dec 19 '18 18:12 joshmouch

I'm not sure how AI activation for ASP.NET Core works in .net 472

cc @clguimanMSFT

pakrym avatar Dec 19 '18 18:12 pakrym

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.

clguiman avatar Dec 19 '18 20:12 clguiman