From 1025a55627b3afdb529ae29a5cf7b67606537c06 Mon Sep 17 00:00:00 2001 From: Graham Christensen Date: Mon, 3 Jun 2024 14:37:04 -0400 Subject: [PATCH] track timings --- dist/index.js | 4 +++- src/index.ts | 3 +++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/dist/index.js b/dist/index.js index 38d1b03..5167c29 100644 --- a/dist/index.js +++ b/dist/index.js @@ -98142,8 +98142,10 @@ var NixInstallerAction = class extends DetSysAction { // eslint-disable-line camelcase debug_probe_urls_status_code: resp.statusCode, // eslint-disable-line camelcase - debug_probe_urls_body: resp.body + debug_probe_urls_body: resp.body, // eslint-disable-line camelcase + // eslint-disable-next-line camelcase + debug_probe_urls_elapsed: (resp.timings.end || 0) - resp.timings.start }); } catch (e) { this.recordEvent("debug-probe-urls:exception", { diff --git a/src/index.ts b/src/index.ts index 62b094b..376d22e 100644 --- a/src/index.ts +++ b/src/index.ts @@ -169,6 +169,9 @@ class NixInstallerAction extends DetSysAction { debug_probe_urls_ok: resp.ok, // eslint-disable-line camelcase debug_probe_urls_status_code: resp.statusCode, // eslint-disable-line camelcase debug_probe_urls_body: resp.body, // eslint-disable-line camelcase + // eslint-disable-next-line camelcase + debug_probe_urls_elapsed: + (resp.timings.end || 0) - resp.timings.start, }); } catch (e: unknown) { this.recordEvent("debug-probe-urls:exception", {