question

Luca-9263 avatar image
0 Votes"
Luca-9263 asked Monalla-MSFT answered

Application Insights stops receiving telemetry from application

I have an ASP.NET 4.6.2 application running on AppService. The application is deployed through the swap of a deployment slot and Application Insights is set as application configuration on AppService (this is done automatically by Azure Portal when creating the resource). Sometimes it happens that the Application Insight events are no longer sent (or received) without any change. The application has plenty of memory and CPU, so a lack of resources doesn't seem to be the issue, however one week after the last deployment I suddenly see all the charts' data vanishing (except for the healthchecks I setup in ApplicationInsights)
201467-image.png




I don't really know how to debug this, but other services running on .NET6 have never experienced this issue, instead this service giving issues a couple of months ago after ~2y of operation.
I currently have the latest version of ApplicationInsights installed (2.20.0)

azure-monitordotnet-aspnet-generalazure-webapps-monitoring
image.png (36.0 KiB)
· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

@Luca-9263 - support team is still working on the case, and I hope that the issue gets resolved soon.

0 Votes 0 ·

1 Answer

Monalla-MSFT avatar image
0 Votes"
Monalla-MSFT answered

Hello @Luca-9263 - Thanks for patiently working with our support team and helping us resolve your issue.

To Rephrase the solution here,

The issue was that you were missing telemetry data in Application Insights randomly after slot swaps in the Web Application.

During the investigation we found that there are some data gaps coming from SDK and saw that you are using Application Insights SDK and auto instrumentation both. Once you disable the auto instrumentation, it should resolve the issue. because having both will create the conflict.


Hope this helps. and please feel free to reach out if you have any further questions.



If the above response was helpful, please feel free to "Accept as Answer" and "Upvote" the same so it can be beneficial to the community.

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.