microsoft / ApplicationInsights-dotnet-server

Microsoft Application Insights for .NET Web Applications
https://azure.microsoft.com/services/application-insights/
133 stars 67 forks source link

EventCounter 1st value is unusually high. #1233

Closed cijothomas closed 5 years ago

cijothomas commented 5 years ago

If you are reporting bug/issue, please provide detailed Repro instructions.

Repro Steps

  1. Take .net core 3.0 preview 6 app.
  2. Install latest beta1 sdk.
  3. Run the app for few minutes.
  4. Observe value of EventCounters like ExceptionCount, TP Items Count.

Actual Behavior

The very 1st value reported is quite high. Like 100K or so.. The next value onwards its more like 1-2. as per expectations.

Expected Behavior

The 1st value is suspiciously high.

Version Info

SDK Version : 2.11.0-beta1 .NET Version : .net core 3.0-preview6 How Application was onboarded with SDK(VisualStudio/StatusMonitor/Azure Extension) : OS : Hosting Info (IIS/Azure WebApps/ etc) :

cijothomas commented 5 years ago

example 1: image

cijothomas commented 5 years ago

example 2: image

cijothomas commented 5 years ago

https://github.com/dotnet/coreclr/pull/25799 This is fixed and will be available in .NET Core 3,0 preview 8. No action required in application insights sdk other than validating things look good. Keeping this open until preview 8 is available for testing.

cijothomas commented 5 years ago

validated with preview 8.