Skip to content

Commit c133f13

Browse files
authored
fix empty instrumentation fields (#135)
1 parent 70ea2ad commit c133f13

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,5 @@
33
Cargo.lock
44
.idea/
55
docs/
6+
.claude/*.local.*
7+
CLAUDE.local.md

crates/host-rpc/src/notifier.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -242,7 +242,7 @@ where
242242
/// Fetch a single block with receipts by number (used for backfill only).
243243
///
244244
/// The block and receipt fetches are concurrent.
245-
#[tracing::instrument(level = "debug", skip_all, fields(number))]
245+
#[tracing::instrument(level = "debug", skip(self))]
246246
async fn fetch_block_by_number(&self, number: u64) -> Result<RpcBlock, RpcHostError> {
247247
let start = Instant::now();
248248
let tag = BlockNumberOrTag::Number(number);
@@ -260,7 +260,7 @@ where
260260
///
261261
/// Returns an empty `Vec` if `from > to`. Concurrency is bounded by
262262
/// [`Self::max_rpc_concurrency`].
263-
#[tracing::instrument(level = "debug", skip_all, fields(from, to))]
263+
#[tracing::instrument(level = "debug", skip(self))]
264264
async fn fetch_range(&self, from: u64, to: u64) -> Result<Vec<Arc<RpcBlock>>, RpcHostError> {
265265
if from > to {
266266
return Ok(Vec::new());

0 commit comments

Comments
 (0)