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.