From da1463924f4adeb6d32e3afe1ddc147dfb127cab Mon Sep 17 00:00:00 2001 From: Floriane TUERNAL SABOTINOV Date: Thu, 4 Sep 2025 19:33:15 +0200 Subject: [PATCH] experiment do I preserve trace_id with with method --- .../client_handling/websocket/connection_handler/fresh.rs | 8 ++++++++ 1 file changed, 8 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 60d366eb25..3e7b1cd6d1 100644 --- a/gateway/src/node/client_handling/websocket/connection_handler/fresh.rs +++ b/gateway/src/node/client_handling/websocket/connection_handler/fresh.rs @@ -910,6 +910,14 @@ impl FreshHandler { let cx = opentelemetry::Context::current_with_span(span); let _guard = cx.attach(); + let current_context = opentelemetry::Context::current(); + let initial_trace_id = current_context.span().span_context().trace_id(); + error!("==== trace_id at the start of initial authentication: {:?} ====", initial_trace_id); + // + + drop(_guard); + + // let _guard = match &span{ // Some(s) => { // warn!("==== ENTERED SPAN ====");