track timings

This commit is contained in:
Graham Christensen 2024-06-03 14:37:04 -04:00
parent 5adb94fc48
commit 1025a55627
2 changed files with 6 additions and 1 deletions

4
dist/index.js generated vendored
View file

@ -98142,8 +98142,10 @@ var NixInstallerAction = class extends DetSysAction {
// eslint-disable-line camelcase // eslint-disable-line camelcase
debug_probe_urls_status_code: resp.statusCode, debug_probe_urls_status_code: resp.statusCode,
// eslint-disable-line camelcase // eslint-disable-line camelcase
debug_probe_urls_body: resp.body debug_probe_urls_body: resp.body,
// eslint-disable-line camelcase // eslint-disable-line camelcase
// eslint-disable-next-line camelcase
debug_probe_urls_elapsed: (resp.timings.end || 0) - resp.timings.start
}); });
} catch (e) { } catch (e) {
this.recordEvent("debug-probe-urls:exception", { this.recordEvent("debug-probe-urls:exception", {

View file

@ -169,6 +169,9 @@ class NixInstallerAction extends DetSysAction {
debug_probe_urls_ok: resp.ok, // eslint-disable-line camelcase debug_probe_urls_ok: resp.ok, // eslint-disable-line camelcase
debug_probe_urls_status_code: resp.statusCode, // 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 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) { } catch (e: unknown) {
this.recordEvent("debug-probe-urls:exception", { this.recordEvent("debug-probe-urls:exception", {