From 98504f5de3bc894ff68fc9e01ef46428e85d509d Mon Sep 17 00:00:00 2001 From: Arjun Attam Date: Tue, 30 Apr 2024 19:24:57 +0530 Subject: [PATCH 1/2] chore: update run telemetry events --- packages/cli/src/bin/index.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/cli/src/bin/index.ts b/packages/cli/src/bin/index.ts index 22590ad0..2b9daabb 100644 --- a/packages/cli/src/bin/index.ts +++ b/packages/cli/src/bin/index.ts @@ -153,6 +153,7 @@ program name: "Scores ", }); } + await telemetry.logEvent("run_start", runEventProperties(runs, dataset)); const completion = await Promise.all( runs.map((r) => { r.parameters = r.parameters ? r.parameters : {}; @@ -197,7 +198,7 @@ program await reportOnCI(completion, dataset); } - await telemetry.logEvent("run", runEventProperties(runs, dataset)); + await telemetry.logEvent("run_complete", runEventProperties(runs, dataset)); const failedOutputs = failedOutputsSummary(completion); if (failedOutputs) { const { code, message } = failedOutputs; From d476e28897af2547ea57b1e90f196bc85e2474ba Mon Sep 17 00:00:00 2001 From: Arjun Attam Date: Tue, 30 Apr 2024 19:32:16 +0530 Subject: [PATCH 2/2] chore: telemetry names --- packages/cli/src/bin/index.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/cli/src/bin/index.ts b/packages/cli/src/bin/index.ts index 2b9daabb..e879a614 100644 --- a/packages/cli/src/bin/index.ts +++ b/packages/cli/src/bin/index.ts @@ -153,7 +153,7 @@ program name: "Scores ", }); } - await telemetry.logEvent("run_start", runEventProperties(runs, dataset)); + telemetry.logEvent("run.start", runEventProperties(runs, dataset)); const completion = await Promise.all( runs.map((r) => { r.parameters = r.parameters ? r.parameters : {}; @@ -198,7 +198,7 @@ program await reportOnCI(completion, dataset); } - await telemetry.logEvent("run_complete", runEventProperties(runs, dataset)); + await telemetry.logEvent("run.complete", runEventProperties(runs, dataset)); const failedOutputs = failedOutputsSummary(completion); if (failedOutputs) { const { code, message } = failedOutputs; @@ -320,7 +320,7 @@ program dataset: Dataset; persistToFile: boolean; }; - await telemetry.logEvent("execute_from_ui", { + telemetry.logEvent("ui.run.start", { ...runEventProperties(runs, dataset), persist_to_file: persistToFile, }); @@ -355,7 +355,7 @@ program app.listen(availablePort, () => { console.log(cyan(`Empirical app running on ${underline(fullUrl)}`)); opener(fullUrl); - telemetry.logEvent("open_ui"); + telemetry.logEvent("ui.open"); }); });