config: Configure Azure Application Insights

Description Usage Arguments Details Value

View source: R/cfg.R

Description

Ensures an instrumentationKey/connectionString and appId is provided.

Usage

1
2
3
4
5
6
7
config(
  appId,
  instrumentationKey,
  connectionString,
  autoTrackPageVisitTime = TRUE,
  ...
)

Arguments

appId

String for identifying your app, if you use same Application Insights for multiple apps.

instrumentationKey, connectionString

connectionString is preferred for newer accounts. 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.

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).

Value

List.


AzureAppInsights documentation built on Oct. 1, 2021, 5:08 p.m.