diff options
author | Elizabeth <me@liz.coffee> | 2025-06-02 18:07:31 -0700 |
---|---|---|
committer | Elizabeth <me@liz.coffee> | 2025-06-02 18:07:31 -0700 |
commit | d9c418425b035f00c950e6a83df9470d7af80413 (patch) | |
tree | 07c7445d7800a6ac6a3cf6b404ebcf4e27aad245 /worker/jobs | |
parent | 98f5c21aa65bbbca01a186a754249335b4afef57 (diff) | |
download | ci-d9c418425b035f00c950e6a83df9470d7af80413.tar.gz ci-d9c418425b035f00c950e6a83df9470d7af80413.zip |
Use log traceable in metric traceable
Diffstat (limited to 'worker/jobs')
-rw-r--r-- | worker/jobs/ci_pipeline.run | 5 |
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) => { |