From cfe8c08ca6e34913c5fffea855e0ebad1a17c040 Mon Sep 17 00:00:00 2001 From: Floriane TUERNAL SABOTINOV Date: Thu, 4 Sep 2025 17:10:25 +0200 Subject: [PATCH] print debug trace --- .../websocket/connection_handler/fresh.rs | 9 +++++++++ 1 file changed, 9 insertions(+) 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 2822ae718e..fa47a43e10 100644 --- a/gateway/src/node/client_handling/websocket/connection_handler/fresh.rs +++ b/gateway/src/node/client_handling/websocket/connection_handler/fresh.rs @@ -968,6 +968,10 @@ impl FreshHandler { return Err(InitialAuthenticationError::EmptyClientDetails); }; + info_span!("THE SOLE PURPOSE OF THIS SPAN IS TO SEE ITS TRACE ID"); + let current_context = opentelemetry::Context::current(); + let final_trace_id = current_context.span().span_context().trace_id(); + error!("trace_id at the end of initial authentication: {:?}", final_trace_id); Ok(Some(client_details)) } @@ -999,6 +1003,11 @@ impl FreshHandler { } }; + info_span!("THE SOLE PURPOSE OF THIS SPAN IS TO SEE ITS TRACE ID"); + let current_context = opentelemetry::Context::current(); + let final_trace_id = current_context.span().span_context().trace_id(); + error!("trace_id after initial client request handling returns: {:?}", final_trace_id); + if let Some(registration_details) = maybe_auth_res { let (mix_sender, mix_receiver) = mpsc::unbounded(); // Channel for handlers to ask other handlers if they are still active.