-
Notifications
You must be signed in to change notification settings - Fork 1
Description
The application successfully logs errors and messages to Application Insights but not debug snapshots. No options for snapshots appear in Azure.
When attempting to create a support request in Azure, it runs a diagnostic test that says snapshots were not sent:
Our diagnostic has detected that the configured application(s) have not sent any data to the Application Insights resource with name ApplicationInsightsinstance and instrumentation key XYZ between 11/2/2022 5:00 PM and 11/3/2022 5:00 PM. This is an indication that there is a configuration issue with your application and you should follow the troubleshooting steps below to correct your issue.
SnapshotUploader.exe is not found anywhere on the dev machine. The local temp folders configured below had to be created manually and remain empty.
Configuration:
- See dialedin2014/ApplicationInsightsTest: AI experiment (github.com)
- .NET 6 Console app using the Generic Host
- services.AddSnapshotCollector() called
- Using the latest Microsoft.ApplicationInsights.WorkerService package
- Using the latest Microsoft.ApplicationInsights.SnapshotCollector package
- SnapshotCollectorConfiguration ShadowCopyFolder is set to
C:\temp\SnapshotUploader - Using the ServerTelemetryChannel configured with
StorageFolder = @"C:\temp\aisdkstorage" - Viewing results in Azure under ApplicationInsightsinstance | Failures as a user with the Application Insights Snapshot Debugger in that instance
- The test throws a new InvalidOperationException twice with the same message to meet ThresholdForSnapshotting
- The Azure region is not Azure Government or Azure China
What is missing?