From 860e533a77eb7beb7688a51e2c667b3578f335ca Mon Sep 17 00:00:00 2001 From: Vladislav Volodkin Date: Mon, 29 Jul 2024 23:06:08 +0000 Subject: [PATCH] Log and increase metric once Signed-off-by: Vladislav Volodkin --- mountpoint-s3/src/prefetch/caching_stream.rs | 3 --- 1 file changed, 3 deletions(-) diff --git a/mountpoint-s3/src/prefetch/caching_stream.rs b/mountpoint-s3/src/prefetch/caching_stream.rs index b53ff342d..6e6c776fe 100644 --- a/mountpoint-s3/src/prefetch/caching_stream.rs +++ b/mountpoint-s3/src/prefetch/caching_stream.rs @@ -219,9 +219,6 @@ async fn compose_parts( ); match body_receiver.next().await { Some(Ok((offset, body))) => { - trace!(offset, length = body.len(), "received GetObject part"); - metrics::counter!("s3.client.total_bytes", "type" => "read").increment(body.len() as u64); - let expected_offset = block_offset + buffer.len() as u64; if offset != expected_offset { warn!(key, offset, expected_offset, "wrong offset for GetObject body part");