Skip to content

Commit

Permalink
add target to span
Browse files Browse the repository at this point in the history
  • Loading branch information
shekhirin committed Feb 10, 2025
1 parent 1108653 commit e1ea5b3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crates/engine/tree/src/tree/root.rs
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ use std::{
},
time::{Duration, Instant},
};
use tracing::{debug, error, span, trace, Level};
use tracing::{debug, error, trace, trace_span};

/// The level below which the sparse trie hashes are calculated in [`update_sparse_trie`].
const SPARSE_TRIE_INCREMENTAL_LEVEL: usize = 2;
Expand Down Expand Up @@ -1098,7 +1098,7 @@ where
.map(|(address, storage)| (address, storage, trie.take_storage_trie(&address)))
.par_bridge()
.map(|(address, storage, storage_trie)| {
let span = span!(Level::TRACE, "engine::root::sparse", ?address);
let span = trace_span!(target: "engine::root::sparse", "storage_trie", ?address);
let _enter = span.enter();
trace!(target: "engine::root::sparse", "Updating storage");
let mut storage_trie = storage_trie.ok_or(SparseTrieErrorKind::Blind)?;
Expand Down

0 comments on commit e1ea5b3

Please sign in to comment.