demo {AzureAppInsights} | R Documentation |
Demonstration of Application Insights
Description
Launches a simple demonstration of using Application Insights for Shiny apps. Requires that you have a Microsoft Azure Application Insights resource to send to; demonstration will still work – your metrics will just be sent to oblivion.
Usage
demo(
connectionString,
debug = TRUE,
appId = "Test AzureAppInsights",
launch.browser = FALSE,
instrumentationKey
)
Arguments
connectionString , instrumentationKey |
Credentials for sending to Application Insights.
See arguments for |
debug |
Logical, see |
appId |
A id for this particular application. |
launch.browser |
Logical, see |
Details
It may take some minutes before the values sent to Application Insights are visible in the logs on portal.azure.com.
If neither connectionString
nor instrumentationKey
is provided,
a connection string is found in the environment variable AAI_CONNSTR
.
Examples
connstr <- paste0(
'InstrumentationKey=00000000-0000-0000-0000-000000000000;',
'IngestionEndpoint=https://northeurope-0.in.applicationinsights.azure.com/;',
'LiveEndpoint=https://northeurope.livediagnostics.monitor.azure.com/')
## Not run:
demo(connstr)
## End(Not run)
[Package AzureAppInsights version 0.3.1 Index]