Skip to content

Commit

Permalink
fix(executor/simulate): fix tracing span name and add a trace message
Browse files Browse the repository at this point in the history
  • Loading branch information
kkovaacs committed Jan 23, 2025
1 parent 6867aec commit bcb6bc7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion crates/executor/src/simulate.rs
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ pub fn trace(
let mut traces = Vec::with_capacity(transactions.len());
for (transaction_idx, tx) in transactions.into_iter().enumerate() {
let hash = transaction_hash(&tx);
let _span = tracing::debug_span!("simulate", transaction_hash=%super::transaction::transaction_hash(&tx), %transaction_idx).entered();
let _span = tracing::debug_span!("trace", transaction_hash=%super::transaction::transaction_hash(&tx), %transaction_idx).entered();

let tx_type = transaction_type(&tx);
let tx_declared_deprecated_class_hash = transaction_declared_deprecated_class(&tx);
Expand All @@ -209,6 +209,8 @@ pub fn trace(
})?;
tx_state.commit();

tracing::trace!("Transaction tracing finished");

let trace = to_trace(
tx_type,
tx_info,
Expand Down

0 comments on commit bcb6bc7

Please sign in to comment.