Round fields in TRAP caching telemetry to integers

This commit is contained in:
Edoardo Pirovano 2022-08-17 13:30:17 +01:00
parent 7d94bb850d
commit eb6f272155
No known key found for this signature in database
GPG key ID: 047556B5D93FFE28
6 changed files with 12 additions and 14 deletions

4
lib/init-action.js generated
View file

@ -66,8 +66,8 @@ async function sendSuccessStatusReport(startedAt, config, toolsVersion, logger)
tools_resolved_version: toolsVersion,
workflow_languages: workflowLanguages || "",
trap_cache_languages: Object.keys(config.trapCaches).join(","),
trap_cache_download_size_bytes: await (0, trap_caching_1.getTotalCacheSize)(config.trapCaches, logger),
trap_cache_download_duration_ms: config.trapCacheDownloadTime,
trap_cache_download_size_bytes: Math.round(await (0, trap_caching_1.getTotalCacheSize)(config.trapCaches, logger)),
trap_cache_download_duration_ms: Math.round(config.trapCacheDownloadTime),
};
await (0, actions_util_1.sendStatusReport)(statusReport);
}