config function

Configure Azure Application Insights

Configure Azure Application Insights

Ensures an instrumentationKey/connectionString and appId is provided.

config( appId, instrumentationKey, connectionString, autoTrackPageVisitTime = TRUE, ... )

Arguments

  • appId: String for identifying your app, if you use same Application Insights for multiple apps.
  • instrumentationKey, connectionString: Credentials for sending to Application Insights. connectionString is preferred for newer accounts and must contain both InstrumentationKey and IngestionEndpoint.
  • autoTrackPageVisitTime: Submits how long time a user spent on the previous page (see website for more information).
  • ...: Additional options, as given in https://docs.microsoft.com/en-us/azure/azure-monitor/app/javascript#configuration. No checks performed here.

Returns

List.

Details

See https://docs.microsoft.com/en-us/azure/azure-monitor/app/javascript#configuration for explanation of options.

If jsonlite is playing tricks on the arguments given, wrap the value with I. E.g. if you want to force an atomic vector of length 1 to be parsed as an array, use I(3.14).

  • Maintainer: Stefan McKinnon Edwards
  • License: MIT + file LICENSE
  • Last published: 2023-06-13

Useful links