Include request spans in JSON app-server logs

This commit is contained in:
xli-oai
2026-05-06 01:36:04 -07:00
parent 31c267f16b
commit 98664699f1
+2
View File
@@ -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())