[tests] keep OTEL capture on subscriber thread

This commit is contained in:
Chris Bookholt
2026-06-29 22:32:20 -07:00
parent 5e05150de3
commit d921b395ec
+1 -1
View File
@@ -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<Vec<u8>> = Box::leak(Box::new(Mutex::new(Vec::new())));
let subscriber = tracing_subscriber::fmt()