mirror of
https://github.com/openai/codex.git
synced 2026-11-10 21:00:47 +00:00
Include request spans in JSON app-server logs
This commit is contained in:
@@ -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())
|
||||
|
||||
Reference in New Issue
Block a user