microsoft / cordova-plugin-ms-appinsights

Cordova plugin for App Insights
Other
21 stars 31 forks source link

Add properties to context #4

Open artbase opened 9 years ago

artbase commented 9 years ago

I use cordova plugin with Application Insight and I tried to add my properties to context, that through each request application will send additional info, for example code name of my application.

I tried as below:

appInsights.context.application.codename = "code name app"; appInsights.trackEvent("my event");

and this did not work. Can I add additional info to context?