Skip to content

Commit

Permalink
add restore task tracing
Browse files Browse the repository at this point in the history
  • Loading branch information
sokra committed Oct 4, 2024
1 parent 29e1f5d commit ebdccec
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions turbopack/crates/turbo-tasks-backend/src/backend/operation/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,19 @@ impl<'a> ExecuteContext<'a> {
task_id: TaskId,
category: TaskDataCategory,
) -> Vec<CachedDataItem> {
let _span = match category {
TaskDataCategory::Data => tracing::trace_span!(
"restore task data",
task = self.backend.get_task_description(task_id)
),
TaskDataCategory::Meta => tracing::trace_span!(
"restore task meta",
task = self.backend.get_task_description(task_id)
),
_ => unreachable!(),
}
.entered();

// Safety: `transaction` is a valid transaction from `self.backend.backing_storage`.
unsafe {
self.backend
Expand Down

0 comments on commit ebdccec

Please sign in to comment.