diff --git a/crates/llm_gateway/src/stream_context.rs b/crates/llm_gateway/src/stream_context.rs index a63a7774..f0fe14c8 100644 --- a/crates/llm_gateway/src/stream_context.rs +++ b/crates/llm_gateway/src/stream_context.rs @@ -186,7 +186,7 @@ impl HttpContext for StreamContext { self.traceparent = self.get_http_request_header(TRACE_PARENT_HEADER); //start the timing for the request using get_current_time() - let current_time = get_current_time().unwrap(); + let current_time: SystemTime = get_current_time().unwrap(); self.start_time = Some(current_time); self.ttft_duration = None; diff --git a/crates/llm_gateway/tests/integration.rs b/crates/llm_gateway/tests/integration.rs index ea65bfa0..3ef6a278 100644 --- a/crates/llm_gateway/tests/integration.rs +++ b/crates/llm_gateway/tests/integration.rs @@ -51,6 +51,8 @@ fn request_headers_expectations(module: &mut Tester, http_context: i32) { .expect_log(Some(LogLevel::Debug), None) .expect_get_header_map_value(Some(MapType::HttpRequestHeaders), Some("x-request-id")) .returning(None) + .expect_get_header_map_value(Some(MapType::HttpRequestHeaders), Some("traceparent")) + .returning(None) .expect_get_current_time_nanos() .returning(Some(0)) .execute_and_expect(ReturnType::Action(Action::Continue))