Skip to content

Commit

Permalink
add metrics to logs
Browse files Browse the repository at this point in the history
  • Loading branch information
milenkovicm committed Feb 20, 2025
1 parent 3735991 commit 6ad259b
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion ballista/executor/src/execution_engine.rs
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,20 @@ impl DefaultQueryStageExec {

impl Display for DefaultQueryStageExec {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "DefaultQueryStageExec:\n{}", self.shuffle_writer)
let stage_metrics: Vec<String> = self
.shuffle_writer
.metrics()
.unwrap_or_default()
.iter()
.map(|m| m.to_string())
.collect();

write!(
f,
"DefaultQueryStageExec: ({})\n{}",
stage_metrics.join(", "),
self.shuffle_writer
)
}
}

Expand Down

0 comments on commit 6ad259b

Please sign in to comment.