Skip to content

Commit

Permalink
fix(tracing): fix missing new barrier enqueued event (#15216)
Browse files Browse the repository at this point in the history
  • Loading branch information
xxchan authored Feb 23, 2024
1 parent 2cec344 commit 9c1af73
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/meta/src/barrier/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -608,7 +608,9 @@ impl GlobalBarrierManager {
};

// Tracing related stuff
tracing::info!(target: "rw_tracing", parent: prev_epoch.span(), epoch = curr_epoch.value().0, "new barrier enqueued");
prev_epoch.span().in_scope(|| {
tracing::info!(target: "rw_tracing", epoch = curr_epoch.value().0, "new barrier enqueued");
});
span.record("epoch", curr_epoch.value().0);

let command_ctx = Arc::new(CommandContext::new(
Expand Down

0 comments on commit 9c1af73

Please sign in to comment.