Use trackEvent
for tracking a single event together with any extra properties.
Use trackMetric
to track a summary of some measured metrics.
trackEvent(session, name, properties)trackMetric(session, name, metrics, properties)
Method sends data to client's browser; returns the sent list, invisibly.
The session
object passed to function given to shinyServer
.
Name of the event.
List of properties to track. appId
and any extras given in
startAzureAppInsights
is automatically inserted.
Numeric vector of values to calculate summary on. Non-finite values are removed.
Individual measured values are not sent to Application Insights. Instead, summaries of the values (mean, range, average, standard deviation) are sent. Note: Standard deviation doesn't quite work yet.
Before calculating summaries, non-finite values are removed (see is.finite
).
If there are no values in metrics
, nothing is sent.