summaryrefslogtreecommitdiff
path: root/worker/jobs/ci_pipeline.run
diff options
context:
space:
mode:
Diffstat (limited to 'worker/jobs/ci_pipeline.run')
-rw-r--r--worker/jobs/ci_pipeline.run5
1 files changed, 3 insertions, 2 deletions
diff --git a/worker/jobs/ci_pipeline.run b/worker/jobs/ci_pipeline.run
index 03d9d6d..46237f6 100644
--- a/worker/jobs/ci_pipeline.run
+++ b/worker/jobs/ci_pipeline.run
@@ -3,6 +3,7 @@
import {
type Command,
Either,
+ LogTraceable,
getRequiredEnvVars,
getStdout,
isObject,
@@ -32,8 +33,8 @@ const eitherJob = getRequiredEnvVars(["remote", "refname", "rev"])
));
const ciRunMetric = Metric.fromName("checkout_ci.run");
-const trace = `checkout_ci.${run}`;
-await LogMetricTraceable.from(eitherJob).bimap(TraceUtil.withTrace(trace))
+const _logJob = LogTraceable.of(eitherJob).bimap(TraceUtil.withTrace(`checkout_ci.${run}`));
+await LogMetricTraceable.ofLogTraceable(_logJob)
.bimap(TraceUtil.withMetricTrace(ciRunMetric))
.map((tEitherJob) =>
tEitherJob.get().flatMapAsync((ciJob) => {