Quantcast
Channel: Questions in topic: "dll"
Viewing all articles
Browse latest Browse all 706

Using Azure Application Insights with Unity

$
0
0
Unity 2017.1.0f3 Visual Studio 2015 Using .Net 4.6 experimental scripting for Unity We're trying to do some advanced analytics for an academic research project which requires a higher level of detail than we can get through unity analytics. For this, we're trying to use Application Insights on Azure. We set up our unity project to use the .Net Framework 4.6 scripting API and installed the Microsoft.ApplicationInsights nuget package. We have successfully used this nuget package - https://www.nuget.org/packages/Unity.Newtonsoft.Json/ - to get JSON functionality in our project. However, we are having trouble getting application insights to work correctly. The same code works fine in a C# console application outside of unity. The unity project builds and runs, but the analytics packets are not being sent. Using fiddler, I had a look at the requests being sent by application insights and noticed a difference between what unity and the console program sent. The C# console application sends a HTTP v1.1 / Keepalive request to setup an HTTPS connection with dc.services.visualstudio.com, then sends a request to /v2/track on that host. The unity application sends a HTTP v1.0 connection (no keep-alive) which gets the below response from the server. No request is sent to /v2/track. > HTTP/1.0 200 Connection Established>> FiddlerGateway: Direct>> StartTime: 18:30:21.609>> Connection: close ![alt text][1] I am unsure why the same library is having different network behaviour inside/outside unity and was wondering if anyone has successfully integrated application insights with unity. We have previously tried unity analytics, but we needed more extensive analytics than available, as well as alternatives like HockeyApp for unity but this does not support custom events on mobile. [1]: /storage/temp/98119-untitled.png

Viewing all articles
Browse latest Browse all 706

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>