mirror of
https://github.com/DeterminateSystems/nix-installer-action.git
synced 2024-12-23 13:32:06 +01:00
track timings
This commit is contained in:
parent
5adb94fc48
commit
1025a55627
2 changed files with 6 additions and 1 deletions
4
dist/index.js
generated
vendored
4
dist/index.js
generated
vendored
|
@ -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", {
|
||||||
|
|
|
@ -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", {
|
||||||
|
|
Loading…
Reference in a new issue