From d921b395ec5dd434cf957c5b32f2617a6a912059 Mon Sep 17 00:00:00 2001 From: Chris Bookholt Date: Mon, 29 Jun 2026 22:32:20 -0700 Subject: [PATCH] [tests] keep OTEL capture on subscriber thread --- codex-rs/core/tests/suite/otel.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/codex-rs/core/tests/suite/otel.rs b/codex-rs/core/tests/suite/otel.rs index e3415d945b..97c7f6b5cb 100644 --- a/codex-rs/core/tests/suite/otel.rs +++ b/codex-rs/core/tests/suite/otel.rs @@ -710,7 +710,7 @@ async fn turn_and_completed_response_spans_record_token_usage() { ); } -#[tokio::test] +#[tokio::test(flavor = "current_thread")] async fn handle_responses_span_records_response_kind_and_tool_name() { let buffer: &'static Mutex> = Box::leak(Box::new(Mutex::new(Vec::new()))); let subscriber = tracing_subscriber::fmt()