From bda45b405c64f7dffeb58bfcacf5e13728d17245 Mon Sep 17 00:00:00 2001 From: Floriane TUERNAL SABOTINOV Date: Mon, 1 Sep 2025 15:57:54 +0200 Subject: [PATCH] try keep context accross async call --- .../node/client_handling/websocket/connection_handler/fresh.rs | 1 + .../node/client_handling/websocket/connection_handler/mod.rs | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/gateway/src/node/client_handling/websocket/connection_handler/fresh.rs b/gateway/src/node/client_handling/websocket/connection_handler/fresh.rs index 3e2b639e0a..df71599e01 100644 --- a/gateway/src/node/client_handling/websocket/connection_handler/fresh.rs +++ b/gateway/src/node/client_handling/websocket/connection_handler/fresh.rs @@ -854,6 +854,7 @@ impl FreshHandler { } } + #[instrument(skip_all)] pub(crate) async fn handle_initial_client_request( &mut self, request: ClientControlRequest, diff --git a/gateway/src/node/client_handling/websocket/connection_handler/mod.rs b/gateway/src/node/client_handling/websocket/connection_handler/mod.rs index 9528f72f78..c8b59d4f1f 100644 --- a/gateway/src/node/client_handling/websocket/connection_handler/mod.rs +++ b/gateway/src/node/client_handling/websocket/connection_handler/mod.rs @@ -11,7 +11,7 @@ use std::time::Duration; use time::OffsetDateTime; use tokio::io::{AsyncRead, AsyncWrite}; use tokio_tungstenite::WebSocketStream; -use tracing::{debug, instrument, trace, warn}; +use tracing::{debug, instrument, Instrument, trace, warn}; pub(crate) use self::authenticated::AuthenticatedHandler; pub(crate) use self::fresh::FreshHandler;