Using Application Insights for Client Side logging
0
Hi, At a client we run our apps in Azure (Mendix for Private Cloud). We also manage our monitoring via Azure. So far we only do this for the server logging, but we would like to also monitor the client side error so that it is also easy to find any errors that only happened client side. Our plan is to implement a solution using Azure Application Insights. This should not be hard and we've almost managed to do this. Basically what we've done is added a piece of Javascript on a top level page layout, which can be found here: Microsoft Azure Monitor Application Insights JavaScript SDK - Azure Monitor | Microsoft Learn It works for a lot of stuff, but not for the things we really want to capture: the uncaught exceptions that happen in logic (nanoflows). This is because they're not really uncaught. Mendix wraps nanoflows with an error handler. It does log to the client, but apparently, this is not seen by Application Insights. We can't figure out how we can go around this or how to make this error handler go to Application Insights. We can track all page views and if security error happen that were not caused by a nanoflow then we're also good, but logic is unfortunately caught by Mendix itself. Does anyone have experience doing this?