proxy(passthrough): only instrument on debug

This commit is contained in:
Conrad Ludgate
2025-05-19 16:17:24 +01:00
parent 38dbc5f67f
commit 68d561664b
2 changed files with 1 additions and 2 deletions
-1
View File
@@ -67,7 +67,6 @@ where
}
}
#[tracing::instrument(skip_all)]
pub async fn copy_bidirectional_client_compute<Client, Compute>(
client: &mut Client,
compute: &mut Compute,
+1 -1
View File
@@ -13,7 +13,7 @@ use crate::stream::Stream;
use crate::usage_metrics::{Ids, MetricCounterRecorder, USAGE_METRICS};
/// Forward bytes in both directions (client <-> compute).
#[tracing::instrument(skip_all)]
#[tracing::instrument(level = "debug", skip_all)]
pub(crate) async fn proxy_pass(
client: impl AsyncRead + AsyncWrite + Unpin,
compute: impl AsyncRead + AsyncWrite + Unpin,