diff --git a/etherlink/kernel_latest/runtime/src/runtime.rs b/etherlink/kernel_latest/runtime/src/runtime.rs index f1351d83cc2f6a575ea93abcb4b90006ce98f4c6..9a7c2451336eb33ba63b7a0fa03419ed9bcd81a2 100644 --- a/etherlink/kernel_latest/runtime/src/runtime.rs +++ b/etherlink/kernel_latest/runtime/src/runtime.rs @@ -115,7 +115,7 @@ impl + Borrow, Internal: InternalRuntime> S self.host.borrow().store_read(path, from_offset, max_bytes) } - #[instrument(skip(self, buffer, from_offset))] + #[instrument(skip(self, buffer, from_offset), fields(size))] #[inline(always)] fn store_read_slice( &self, @@ -123,6 +123,9 @@ impl + Borrow, Internal: InternalRuntime> S from_offset: usize, buffer: &mut [u8], ) -> Result { + #[cfg(feature = "tracing")] + tracing::Span::current().record("size", buffer.len()); + self.host .borrow() .store_read_slice(path, from_offset, buffer) @@ -139,7 +142,7 @@ impl + Borrow, Internal: InternalRuntime> S Ok(res) } - #[instrument(skip(self, src))] + #[instrument(skip(self, src), fields(size))] #[inline(always)] fn store_write( &mut self, @@ -147,6 +150,9 @@ impl + Borrow, Internal: InternalRuntime> S src: &[u8], at_offset: usize, ) -> Result<(), RuntimeError> { + #[cfg(feature = "tracing")] + tracing::Span::current().record("size", src.len()); + self.host.borrow_mut().store_write(path, src, at_offset) } @@ -284,6 +290,7 @@ impl + Borrow, Internal: InternalRuntime> S impl + BorrowMut, Internal: InternalRuntime> InternalRuntime for KernelHost { + #[instrument(skip(self))] #[inline(always)] fn __internal_store_get_hash( &mut self,