chore: improve some spans (#21781)

This commit is contained in:
DaniPopes
2026-02-04 16:27:53 +01:00
committed by GitHub
parent 665b2bd844
commit 6680a18bc3
10 changed files with 53 additions and 10 deletions

View File

@@ -513,7 +513,6 @@ where
) {
let preserved_sparse_trie = self.sparse_state_trie.clone();
let trie_metrics = self.trie_metrics.clone();
let span = Span::current();
let disable_sparse_trie_as_cache = !config.enable_sparse_trie_as_cache();
let prune_depth = self.sparse_trie_prune_depth;
let max_storage_tries = self.sparse_trie_max_storage_tries;
@@ -521,7 +520,8 @@ where
config.multiproof_chunking_enabled().then_some(config.multiproof_chunk_size());
self.executor.spawn_blocking(move || {
let _enter = span.entered();
let _enter = debug_span!(target: "engine::tree::payload_processor", "sparse_trie_task")
.entered();
// Reuse a stored SparseStateTrie if available, applying continuation logic.
// If this payload's parent state root matches the preserved trie's anchor,

View File

@@ -135,6 +135,7 @@ where
/// Receives [`SparseTrieUpdate`]s until the channel is closed, applying each update
/// to the trie. Once all updates are processed, computes and returns the final state root.
#[instrument(
name = "SparseTrieTask::run",
level = "debug",
target = "engine::tree::payload_processor::sparse_trie",
skip_all
@@ -338,6 +339,7 @@ where
///
/// This concludes once the last state update has been received and processed.
#[instrument(
name = "SparseTrieCacheTask::run",
level = "debug",
target = "engine::tree::payload_processor::sparse_trie",
skip_all