Application Insights stops receiving telemetry from application

Luca 1 Reputation point
2022-05-12T14:57:34.693+00:00

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 Monitor
Azure Monitor
An Azure service that is used to collect, analyze, and act on telemetry data from Azure and on-premises environments.
2,833 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,292 questions
Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
6,963 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Monalla-MSFT 11,961 Reputation points
    2022-06-30T16:02:07.6+00:00

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

    0 comments No comments