Answered by:
Application Insights Desktop application

Question
-
Mine is a desktop application with several tabs, pulling data from web service calls. As Application Insights does not inherently support for desktop applications, i am trying to find the steps needed to be able to directly call APIs to take advantage of Application Insights. Any idea or direction will be helpful. Thanks
Answers
-
take a look at using the AI Server side SDK or Microsoft.ApplicationInsights.Telemetry.Services
you can pass in the Application Insights Id into the start method:
http://msdn.microsoft.com/en-us/library/microsoft.applicationinsights.telemetry.services.serveranalytics.start.aspx
thanks,
vlad
This posting is provided "AS IS" with no warranties, and confers no rights. Use of included script samples are subject to the terms specified at http://www.microsoft.com/info/cpyright.htm
- Proposed as answer by Jakub Oleksy [MSFT]Microsoft employee Wednesday, June 18, 2014 6:07 PM
- Marked as answer by Dmitry G MatveevMicrosoft employee, Owner Tuesday, August 26, 2014 7:03 PM
All replies
-
take a look at using the AI Server side SDK or Microsoft.ApplicationInsights.Telemetry.Services
you can pass in the Application Insights Id into the start method:
http://msdn.microsoft.com/en-us/library/microsoft.applicationinsights.telemetry.services.serveranalytics.start.aspx
thanks,
vlad
This posting is provided "AS IS" with no warranties, and confers no rights. Use of included script samples are subject to the terms specified at http://www.microsoft.com/info/cpyright.htm
- Proposed as answer by Jakub Oleksy [MSFT]Microsoft employee Wednesday, June 18, 2014 6:07 PM
- Marked as answer by Dmitry G MatveevMicrosoft employee, Owner Tuesday, August 26, 2014 7:03 PM
-
Using this API we can LogEvents using ServerAnalytics.BeginRequest().LogEvent.
However this api does not have any methods to log an event like LogPageView. how to log a PageViewEvent using that api?
Web version allows through javascrip like LogPageView("a/b/c") or windows store provides this like ClientAnalyticsChannel.Default.LogPageView("a/b/c").- Edited by sbprasadrao Monday, June 16, 2014 9:02 PM
-
when using the server side SDK you really have 2 options. LogEvent or TimedEvent.
thanks,
vlad
This posting is provided "AS IS" with no warranties, and confers no rights. Use of included script samples are subject to the terms specified at http://www.microsoft.com/info/cpyright.htm
-
Mine is a desktop application with several tabs, pulling data from web service calls. As Application Insights does not inherently support for desktop applications, i am trying to find the steps needed to be able to directly call APIs to take advantage of Application Insights. Any idea or direction will be helpful. Thanks
I'm actively developing a solution for this. It's in beta, but available on nuget now.http://bc3te.ch/brandonh
- Proposed as answer by Brandon H_ Monday, May 11, 2015 3:58 PM
-