diff --git a/Cargo.lock b/Cargo.lock index 05ceb8d0fc3dd..221df0bcfc7ad 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -90,7 +90,7 @@ dependencies = [ [[package]] name = "anemo" version = "0.0.0" -source = "git+https://github.com/mystenlabs/anemo.git?rev=57c4af7d6cdbf47633e6715bcd67d98f300e2fd8#57c4af7d6cdbf47633e6715bcd67d98f300e2fd8" +source = "git+https://github.com/mystenlabs/anemo.git?rev=1b977fe20a615b7a7045f779f9aafa120389c2ab#1b977fe20a615b7a7045f779f9aafa120389c2ab" dependencies = [ "anyhow", "async-trait", @@ -120,7 +120,7 @@ dependencies = [ [[package]] name = "anemo-build" version = "0.0.0" -source = "git+https://github.com/mystenlabs/anemo.git?rev=57c4af7d6cdbf47633e6715bcd67d98f300e2fd8#57c4af7d6cdbf47633e6715bcd67d98f300e2fd8" +source = "git+https://github.com/mystenlabs/anemo.git?rev=1b977fe20a615b7a7045f779f9aafa120389c2ab#1b977fe20a615b7a7045f779f9aafa120389c2ab" dependencies = [ "prettyplease", "proc-macro2 1.0.46", @@ -131,7 +131,7 @@ dependencies = [ [[package]] name = "anemo-tower" version = "0.0.0" -source = "git+https://github.com/mystenlabs/anemo.git?rev=57c4af7d6cdbf47633e6715bcd67d98f300e2fd8#57c4af7d6cdbf47633e6715bcd67d98f300e2fd8" +source = "git+https://github.com/mystenlabs/anemo.git?rev=1b977fe20a615b7a7045f779f9aafa120389c2ab#1b977fe20a615b7a7045f779f9aafa120389c2ab" dependencies = [ "anemo", "bytes", diff --git a/Cargo.toml b/Cargo.toml index 83ead5f341fae..4b23fb74252fd 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -94,9 +94,9 @@ move-prover-boogie-backend = { git = "https://github.com/move-language/move", re fastcrypto = { git = "https://github.com/MystenLabs/fastcrypto", rev = "7c685a4b67680ef3e5d48117f4e2e3aef5c50526" } # anemo dependencies -anemo = { git = "https://github.com/mystenlabs/anemo.git", rev = "57c4af7d6cdbf47633e6715bcd67d98f300e2fd8" } -anemo-build = { git = "https://github.com/mystenlabs/anemo.git", rev = "57c4af7d6cdbf47633e6715bcd67d98f300e2fd8" } -anemo-tower = { git = "https://github.com/mystenlabs/anemo.git", rev = "57c4af7d6cdbf47633e6715bcd67d98f300e2fd8" } +anemo = { git = "https://github.com/mystenlabs/anemo.git", rev = "1b977fe20a615b7a7045f779f9aafa120389c2ab" } +anemo-build = { git = "https://github.com/mystenlabs/anemo.git", rev = "1b977fe20a615b7a7045f779f9aafa120389c2ab" } +anemo-tower = { git = "https://github.com/mystenlabs/anemo.git", rev = "1b977fe20a615b7a7045f779f9aafa120389c2ab" } # Use the same workspace-hack across crates. workspace-hack = { path = "crates/workspace-hack" } diff --git a/crates/sui-node/src/lib.rs b/crates/sui-node/src/lib.rs index add0a65afc922..1b5bb42a56a1b 100644 --- a/crates/sui-node/src/lib.rs +++ b/crates/sui-node/src/lib.rs @@ -312,14 +312,14 @@ impl SuiNode { let routes = anemo::Router::new(); let service = ServiceBuilder::new() - .layer(TraceLayer::new()) + .layer(TraceLayer::new_for_server_errors()) .layer(CallbackLayer::new(MetricsMakeCallbackHandler::new( Arc::new(inbound_network_metrics), ))) .service(routes); let outbound_layer = ServiceBuilder::new() - .layer(TraceLayer::new()) + .layer(TraceLayer::new_for_client_and_server_errors()) .layer(CallbackLayer::new(MetricsMakeCallbackHandler::new( Arc::new(outbound_network_metrics), ))) diff --git a/crates/workspace-hack/Cargo.toml b/crates/workspace-hack/Cargo.toml index 7c56a49211f30..2525bb3ab984d 100644 --- a/crates/workspace-hack/Cargo.toml +++ b/crates/workspace-hack/Cargo.toml @@ -22,8 +22,8 @@ aes = { version = "0.8", default-features = false } aes-gcm = { version = "0.10", features = ["aes", "alloc", "getrandom"] } ahash = { version = "0.7", features = ["std"] } aho-corasick = { version = "0.7", features = ["std"] } -anemo = { git = "https://github.com/mystenlabs/anemo.git", rev = "57c4af7d6cdbf47633e6715bcd67d98f300e2fd8", default-features = false } -anemo-tower = { git = "https://github.com/mystenlabs/anemo.git", rev = "57c4af7d6cdbf47633e6715bcd67d98f300e2fd8", default-features = false } +anemo = { git = "https://github.com/mystenlabs/anemo.git", rev = "1b977fe20a615b7a7045f779f9aafa120389c2ab", default-features = false } +anemo-tower = { git = "https://github.com/mystenlabs/anemo.git", rev = "1b977fe20a615b7a7045f779f9aafa120389c2ab", default-features = false } ansi_term = { version = "0.12", default-features = false } anyhow = { version = "1", features = ["backtrace", "std"] } arc-swap = { version = "1", default-features = false, features = ["serde"] } @@ -627,9 +627,9 @@ aes = { version = "0.8", default-features = false } aes-gcm = { version = "0.10", features = ["aes", "alloc", "getrandom"] } ahash = { version = "0.7", features = ["std"] } aho-corasick = { version = "0.7", features = ["std"] } -anemo = { git = "https://github.com/mystenlabs/anemo.git", rev = "57c4af7d6cdbf47633e6715bcd67d98f300e2fd8", default-features = false } -anemo-build = { git = "https://github.com/mystenlabs/anemo.git", rev = "57c4af7d6cdbf47633e6715bcd67d98f300e2fd8", default-features = false } -anemo-tower = { git = "https://github.com/mystenlabs/anemo.git", rev = "57c4af7d6cdbf47633e6715bcd67d98f300e2fd8", default-features = false } +anemo = { git = "https://github.com/mystenlabs/anemo.git", rev = "1b977fe20a615b7a7045f779f9aafa120389c2ab", default-features = false } +anemo-build = { git = "https://github.com/mystenlabs/anemo.git", rev = "1b977fe20a615b7a7045f779f9aafa120389c2ab", default-features = false } +anemo-tower = { git = "https://github.com/mystenlabs/anemo.git", rev = "1b977fe20a615b7a7045f779f9aafa120389c2ab", default-features = false } ansi_term = { version = "0.12", default-features = false } anyhow = { version = "1", features = ["backtrace", "std"] } arc-swap = { version = "1", default-features = false, features = ["serde"] } diff --git a/narwhal/primary/src/primary.rs b/narwhal/primary/src/primary.rs index e29881bbc0af6..73c580d898d40 100644 --- a/narwhal/primary/src/primary.rs +++ b/narwhal/primary/src/primary.rs @@ -225,14 +225,14 @@ impl Primary { .add_rpc_service(worker_service); let service = ServiceBuilder::new() - .layer(TraceLayer::new()) + .layer(TraceLayer::new_for_server_errors()) .layer(CallbackLayer::new(MetricsMakeCallbackHandler::new( inbound_network_metrics, ))) .service(routes); let outbound_layer = ServiceBuilder::new() - .layer(TraceLayer::new()) + .layer(TraceLayer::new_for_client_and_server_errors()) .layer(CallbackLayer::new(MetricsMakeCallbackHandler::new( outbound_network_metrics, ))) diff --git a/narwhal/worker/src/worker.rs b/narwhal/worker/src/worker.rs index 886a302821bd0..7b6b450d736db 100644 --- a/narwhal/worker/src/worker.rs +++ b/narwhal/worker/src/worker.rs @@ -139,14 +139,14 @@ impl Worker { .add_rpc_service(primary_service); let service = ServiceBuilder::new() - .layer(TraceLayer::new()) + .layer(TraceLayer::new_for_server_errors()) .layer(CallbackLayer::new(MetricsMakeCallbackHandler::new( inbound_network_metrics, ))) .service(routes); let outbound_layer = ServiceBuilder::new() - .layer(TraceLayer::new()) + .layer(TraceLayer::new_for_client_and_server_errors()) .layer(CallbackLayer::new(MetricsMakeCallbackHandler::new( outbound_network_metrics, )))