diff --git a/codex-rs/app-server/src/lib.rs b/codex-rs/app-server/src/lib.rs index 4013bbe76b..8757d9eb71 100644 --- a/codex-rs/app-server/src/lib.rs +++ b/codex-rs/app-server/src/lib.rs @@ -585,6 +585,8 @@ pub async fn run_main_with_transport_options( let stderr_fmt: StderrLogLayer = match log_format_from_env() { LogFormat::Json => tracing_subscriber::fmt::layer() .json() + .with_current_span(true) + .with_span_list(true) .with_writer(std::io::stderr) .with_span_events(tracing_subscriber::fmt::format::FmtSpan::FULL) .with_filter(EnvFilter::from_default_env())