From 910330c28dd6007d3a3285d2429e4bc19f6f9bd6 Mon Sep 17 00:00:00 2001 From: Daiderd Jordan Date: Thu, 21 May 2020 21:14:25 +0200 Subject: [PATCH] start span for evaluations in consumer --- ofborg/src/tasks/evaluate.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ofborg/src/tasks/evaluate.rs b/ofborg/src/tasks/evaluate.rs index 31315cd..82c962c 100644 --- a/ofborg/src/tasks/evaluate.rs +++ b/ofborg/src/tasks/evaluate.rs @@ -80,6 +80,9 @@ impl worker::SimpleWorker for EvaluationWorker } fn consumer(&mut self, job: &evaluationjob::EvaluationJob) -> worker::Actions { + let span = debug_span!("job", pr = ?job.pr.number); + let _enter = span.enter(); + let mut vending_machine = self .github_vend .write() @@ -249,9 +252,6 @@ impl<'a, E: stats::SysEvents + 'static> OneEval<'a, E> { // FIXME: remove with rust/cargo update #[allow(clippy::cognitive_complexity)] fn evaluate_job(&mut self) -> Result { - let span = debug_span!("job", pr = ?self.job.pr.number); - let _enter = span.enter(); - let job = self.job; let repo = self .client_app