From d9c418425b035f00c950e6a83df9470d7af80413 Mon Sep 17 00:00:00 2001 From: Elizabeth Date: Mon, 2 Jun 2025 18:07:31 -0700 Subject: Use log traceable in metric traceable --- worker/jobs/ci_pipeline.run | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'worker/jobs') 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) => { -- cgit v1.2.3-70-g09d2