From acaf6669dd3d47942acffac9932d9cab30a42767 Mon Sep 17 00:00:00 2001 From: init4samwise Date: Sat, 14 Feb 2026 11:11:31 +0000 Subject: [PATCH] feat(blobber): add trace logging for extraction results (ENG-256) Add .inspect() calls with trace! logging to help debug extraction results: 1. In fetch_and_decode: logs slot and tx_hash when blobs are successfully fetched and decoded 2. In signet_block: logs host_block_number and tx_count when a ZenithBlock is constructed from header and data Closes ENG-256 --- crates/blobber/src/blobs/cache.rs | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/crates/blobber/src/blobs/cache.rs b/crates/blobber/src/blobs/cache.rs index 4aa0d7b..81c67f9 100644 --- a/crates/blobber/src/blobs/cache.rs +++ b/crates/blobber/src/blobs/cache.rs @@ -100,6 +100,9 @@ impl CacheHandle { .find(|data| keccak256(data) == extract.block_data_hash()) .map(Into::into) .ok_or_else(|| BlobberError::block_data_not_found(extract.block_data_hash())) + .inspect(|_| { + trace!(slot, %tx_hash, "Successfully fetched and decoded blobs"); + }) } /// Fetch the blobs, decode them using the provided coder, and construct a @@ -131,7 +134,13 @@ impl CacheHandle { } Err(BlobberError::Fetch(err)) => return Err(err), }; - Ok(ZenithBlock::from_header_and_data(header, block_data)) + Ok(ZenithBlock::from_header_and_data(header, block_data)).inspect(|block| { + trace!( + host_block_number = %block.header().hostBlockNumber, + tx_count = block.transactions().len(), + "Constructed ZenithBlock from header and data" + ); + }) } }