tracking function

Sends an event or set of metrics to Application Insights

Sends an event or set of metrics to Application Insights

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)

Arguments

  • session: The session object passed to function given to shinyServer.
  • name: Name of the event.
  • properties: List of properties to track. appId and any extras given in startAzureAppInsights is automatically inserted.
  • metrics: Numeric vector of values to calculate summary on. Non-finite values are removed.

Returns

Method sends data to client's browser; returns the sent list, invisibly.

Tracking Metrics

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.

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

Useful links