Few months ago Microsoft announced the release of Visual Studio Online (VSO). One of the new feature that comes with VSO is Application Insights. It allows to monitor the performances of your applications and to find out what your users are doing the most or the less in your app. This kind of information may be very useful to optimize users’ experience in your app or propose new feature, based on behavior analysis.
Before using Application Insights, you have to declare the application in your dashboard on the VSO website. Go to your dashboard and click the item “Try Application Insights” :
In the Add application section, follow the wizard to declare a Windows Store app
Name your application an copy the generated ID.
You are now ready to use application insights in your app.
Setting up Application Insights in a Windows Store application is very easy. First, you should change the build configuration of your application and choose between x64, x86 and ARM. Any CPU is not supported because application insights is distributed as a winmd native component.
Once you have changed the build configuration of your projet, you can search for a Nuget package named Application Insights Telemetry SDK for Windows Store Apps :
Do not waste time to look for the reference in your project after you have installed the package, it will be visible only after Visual Studio has been restarted (don’t ask why, it was the case for me… ).
Build the solution and check you have no error in the console.
The API is really easy to use. In the namespace Microsoft.ApplicationInsights.Telemetry.WindowsStore, you will find a class ClientAnalyticsSession that exposes a property Default. There are three interesting methods on this object :
Now, you can implement your own tag plan in your app. You just have to call the Start method when your application launches and it’s ok !
Application Insights allows to get some performance information about your application, but also monitor usage patterns in the application. For example, you can know what are the versions most used by your users :
You can also check the different resolutions or hardware of your users :
Or the languages :
And of course the detail of each event that occurs in the application and that you have triggered through the API :
As you can see, it is really easy to use Application Insights in a Windows Store application and the dashboard on the VSO website is very cool and very useful to read all the information about your application.
So do not hesitate anymore, use it !
Hope this helps !
October 20, 2017 16:42
October 20, 2017 16:40
October 17, 2017 09:13
October 17, 2017 09:11
October 17, 2017 09:07
October 17, 2017 09:04
October 17, 2017 06:28
Cloud Service Map for AWS and Azure Available Now https://t.co/5KZmItRpbI
October 17, 2017 06:19
October 17, 2017 06:06
Edge Device Discovery - an Unfinished Project https://t.co/CyjjjHXscL
October 17, 2017 05:57
October 17, 2017 05:41
October 16, 2017 08:14
Microsoft Cognitive Services - How Content Moderator helps to boost online safety https://t.co/6VtyV28zhe
October 16, 2017 08:13
@mandinette77 Il a plutôt parlé d'info sorties de leurs contexte avec comme exemple Twitter. Ce tweet en est une belle illustration btw :-)
October 15, 2017 22:20