session: The session object passed to function given to shinyServer.
cfg: List-object from config.
instance.name: Global JavaScript Instance name defaults to "appInsights" when not supplied. NOT the app's name. Used for accessing the instance from other JavaScript routines.
ld: Defines the load delay (in ms) before attempting to load the sdk. -1 = block page load and add to head. (default) = 0ms load after timeout,
useXhr: Logical, use XHR instead of fetch to report failures (if available).
crossOrigin: When supplied this will add the provided value as the cross origin attribute on the script tag.
onInit: Once the application insights instance has loaded and initialized this callback function will be called with 1 argument -- the sdk instance
heartbeat: Integer, how often should the heartbeat beat -- or set to FALSE to disable.
extras: (Named) list of values to add to any tracking.
include.ip: Logical, adds ip to all tracking's customDimension. See note.
cookie.user: Logical, when TRUE sets a cookie with a random string and submits this along with any tracking with the key userid.
debug: Logical, JS loader uses console.log.
version: Version of the Application Insights JavaScript SDK to load.
Returns
Methods sends data to client's browser; returns the sent list, invisibly.
Tracking users' ip-address
Generally, Azure's Application Insight does not collect the users' ip-address, due to it being somewhat sensitive data (link).
startAzureAppInsights however has the argument include.ip which, when set to TRUE, will add the entry ip to all trackings. The tracked ip-address is taken from session$request$REMOTE_ADDR, which is an un-documented feature and may or may not be the users ip-address.