From 49dabbe6f3895cfd4fb5d6caa4bd74299c58dac6 Mon Sep 17 00:00:00 2001 From: Pedro Ramos Date: Wed, 31 Jan 2024 11:34:20 +0100 Subject: [PATCH] Rename the methods for one of the metrics --- src/base.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/base.ts b/src/base.ts index f1351621802..0f4ae841924 100644 --- a/src/base.ts +++ b/src/base.ts @@ -32,7 +32,7 @@ export default abstract class extends Command { } } - async recordActionExecuted(action: string, metadata: MetricMetadata = {}, rawDocument?: string) { + async recordActionFinished(action: string, metadata: MetricMetadata = {}, rawDocument?: string) { if (rawDocument !== undefined) { try { const {document} = await this.parser.parse(rawDocument); @@ -47,7 +47,7 @@ export default abstract class extends Command { } const callable = async function(recorder: Recorder) { - await recorder.recordActionExecuted(action, metadata); + await recorder.recordActionFinished(action, metadata); }; await this.recordActionMetric(callable); @@ -75,7 +75,7 @@ export default abstract class extends Command { async finally(error: Error | undefined): Promise { await super.finally(error); this.metricsMetadata['success'] = error === undefined; - await this.recordActionExecuted(this.id as string, this.metricsMetadata, this.specFile?.text()); + await this.recordActionFinished(this.id as string, this.metricsMetadata, this.specFile?.text()); } recorderFromEnv(prefix: string): Recorder {