ping reasons alone). This causes telemetry events to fire. * @property {string} [telemetrySource="unknown"] * The system, surface, or control the user used to take this action. * @see TabMetrics.METRIC_SOURCE for possible values. * Defaults to "unknown". */ /** * Creates a `TabMetricsContext` object for a user event originating from * the specified source. * * @param {string} telemetrySource * @see TabMetrics.METRIC_SOURCE * @returns {TabMetricsContext} */ function userTriggeredContext(telemetrySource) { telemetrySource = telemetrySource || METRIC_SOURCE.UNKNOWN; return { isUserTriggered: true, telemetrySource, }; } export const TabMetrics = { METRIC_SOURCE, METRIC_TABS_LAYOUT, METRIC_REOPEN_TYPE, METRIC_GROUP_TYPE, userTriggeredContext, }; PK