We are trying to find a centralized exception logging solution for our line-of-business UWP app. After some research, we have decided to try HockeyApp, since it has a UWP SDK and a TrackException()
method. We were hoping to view data in Azure by setting up a HockeyApp Bridge to Application Insights. However, while events are flowing through just fine, exceptions are not appearing in Application Insights. Below is simple code I've written to test. The TrackEvent()
logs show up both in HockeyApp and App Insights. The TrackException()
log shows up only in HockeyApp. Why are exceptions not flowing through to Application Insights?
HockeyClient.Current.TrackEvent($"Navigated to Login Page.");
HockeyClient.Current.TrackEvent($"Navigated to Login with Dictionary.", new Dictionary<string, string>
{
{"MyExtraData", "Tour # 1234" }
}
);
try
{
string str = null;
int i = str.Length;
}
catch (Exception ex)
{
HockeyClient.Current.TrackException(ex);
}
HockeyClient.Current.Flush();
Here's the exception in the HockeyApp portal.
And here you can see there are no exceptions in Azure Application Insights.
I have reproduced this multiple times. Also, there is no "exceptions" table in the Analytics portal.