@ -276,7 +276,7 @@ internal class ReleaseMetricController(
Logger("Metrics").error("Unknown suggestion provider: $provider")
null
}
}?.accumulateSamples(longArrayOf(providerTiming.second as Long))
}?.accumulateSamples(listOf(providerTiming.second as Long))
Unit
@ -111,7 +111,7 @@ class RecentSyncedTabFeature(
syncStartId: GleanTimerId?
) {
RecentSyncedTabs.recentSyncedTabShown[tab.deviceType.name.lowercase()].add()
RecentSyncedTabs.recentSyncedTabTimeToLoad.stopAndAccumulate(syncStartId)
syncStartId?.let { RecentSyncedTabs.recentSyncedTabTimeToLoad.stopAndAccumulate(it) }
if (tab == lastSyncedTab) {
RecentSyncedTabs.latestSyncedTabIsStale.add()
@ -66,7 +66,7 @@ class ColdStartupDurationTelemetry {
val startNanos = StartupTimeline.frameworkStartMeasurement.applicationInitNanos
val durationMillis = TimeUnit.NANOSECONDS.toMillis(firstFrameNanos - startNanos)
metric.accumulateSamples(longArrayOf(durationMillis))
metric.accumulateSamples(listOf(durationMillis))
logger.info("COLD $typeForLog Application.<init> to first frame: $durationMillis ms")
@ -56,7 +56,7 @@ class TabsTrayMiddleware : Middleware<TabsTrayState, TabsTrayAction> {
)
val tabGroupSizeMapping = tabsPerGroup.map { generateTabGroupSizeMappedValue(it) }
SearchTerms.groupSizeDistribution.accumulateSamples(tabGroupSizeMapping.toLongArray())
SearchTerms.groupSizeDistribution.accumulateSamples(tabGroupSizeMapping.toList())
@ -106,9 +106,9 @@ class TelemetryMiddleware(
// Record the age of the engine session of the killed foreground/background tab.
if (isSelected && age != null) {
EngineMetrics.killForegroundAge.accumulateSamples(listOf(age).toLongArray())
EngineMetrics.killForegroundAge.accumulateSamples(listOf(age))
} else if (age != null) {
EngineMetrics.killBackgroundAge.accumulateSamples(listOf(age).toLongArray())
EngineMetrics.killBackgroundAge.accumulateSamples(listOf(age))