Skip to content

Include group and action names in traces #157

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Oct 17, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions scope/src/doctor/runner.rs
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ where
continue;
}

let group_span = info_span!(parent: &header_span, "group", "indicatif.pb_show" = true);
let group_span = info_span!(parent: &header_span, "group", "indicatif.pb_show" = true, "group.name" = group_name);
group_span.pb_set_length(group_container.actions.len() as u64);
group_span.pb_set_message(&format!("group {}", group_name));
let _span = group_span.enter();
Expand Down Expand Up @@ -181,7 +181,7 @@ where
continue;
}

let action_span = info_span!(parent: group_span, "action", "indicatif.pb_show" = true);
let action_span = info_span!(parent: group_span, "action", "indicatif.pb_show" = true, "action.name" = action.name());
action_span.pb_set_message(&format!(
"action {} - {}",
action.name(),
Expand Down
Loading