From 7b8de3dca59253dc04ab3c677f639a65f7db3f3e Mon Sep 17 00:00:00 2001 From: Roman Volosatovs Date: Sat, 9 Nov 2024 19:25:35 +0100 Subject: [PATCH] chore(cli-tracing): skip `cmd` in log Signed-off-by: Roman Volosatovs --- crates/wasmtime-cli/src/nats.rs | 2 +- crates/wasmtime-cli/src/quic.rs | 2 +- crates/wasmtime-cli/src/tcp.rs | 2 +- crates/wasmtime-cli/src/unix.rs | 2 +- crates/wasmtime-cli/src/web.rs | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/crates/wasmtime-cli/src/nats.rs b/crates/wasmtime-cli/src/nats.rs index a09c3ced..83867f86 100644 --- a/crates/wasmtime-cli/src/nats.rs +++ b/crates/wasmtime-cli/src/nats.rs @@ -99,7 +99,7 @@ pub async fn handle_serve( crate::handle_serve(exports, imports, None, *timeout, workload).await } -#[instrument(level = "trace", ret(level = "trace"))] +#[instrument(level = "trace", skip_all, ret(level = "trace"))] pub async fn run(cmd: Command) -> anyhow::Result<()> { match cmd { Command::Run(args) => handle_run(args).await, diff --git a/crates/wasmtime-cli/src/quic.rs b/crates/wasmtime-cli/src/quic.rs index 07af211e..0f35ecdb 100644 --- a/crates/wasmtime-cli/src/quic.rs +++ b/crates/wasmtime-cli/src/quic.rs @@ -59,7 +59,7 @@ pub async fn handle_run( .await } -#[instrument(level = "trace", ret(level = "trace"))] +#[instrument(level = "trace", skip_all, ret(level = "trace"))] pub async fn run(cmd: Command) -> anyhow::Result<()> { match cmd { Command::Run(args) => handle_run(args).await, diff --git a/crates/wasmtime-cli/src/tcp.rs b/crates/wasmtime-cli/src/tcp.rs index af1be8f0..890e468f 100644 --- a/crates/wasmtime-cli/src/tcp.rs +++ b/crates/wasmtime-cli/src/tcp.rs @@ -99,7 +99,7 @@ pub async fn handle_serve( res } -#[instrument(level = "trace", ret(level = "trace"))] +#[instrument(level = "trace", skip_all, ret(level = "trace"))] pub async fn run(cmd: Command) -> anyhow::Result<()> { match cmd { Command::Run(args) => handle_run(args).await, diff --git a/crates/wasmtime-cli/src/unix.rs b/crates/wasmtime-cli/src/unix.rs index 9d8975bd..9cde0742 100644 --- a/crates/wasmtime-cli/src/unix.rs +++ b/crates/wasmtime-cli/src/unix.rs @@ -101,7 +101,7 @@ pub async fn handle_serve( res } -#[instrument(level = "trace", ret(level = "trace"))] +#[instrument(level = "trace", skip_all, ret(level = "trace"))] pub async fn run(cmd: Command) -> anyhow::Result<()> { match cmd { Command::Run(args) => handle_run(args).await, diff --git a/crates/wasmtime-cli/src/web.rs b/crates/wasmtime-cli/src/web.rs index fd3e183e..cc500d4e 100644 --- a/crates/wasmtime-cli/src/web.rs +++ b/crates/wasmtime-cli/src/web.rs @@ -51,7 +51,7 @@ pub async fn handle_run( .await } -#[instrument(level = "trace", ret(level = "trace"))] +#[instrument(level = "trace", skip_all, ret(level = "trace"))] pub async fn run(cmd: Command) -> anyhow::Result<()> { match cmd { Command::Run(args) => handle_run(args).await,