Add shared OTLP telemetry and propagate command traces across agents

This commit is contained in:
lda committed 2026-10-09 23:16:21 +07:00 Verified
1 parent 53c274dbe8
commit 9814754e50
29 files changed
+1227 -213

No files matched your search

+4 -2
View File
@@ -28,8 +28,10 @@ async fn main() -> Result<()> {
}
}
let daemon = config::DaemonConfig::from_serve_args(&args)?;
tracing::init(cli.verbose, &daemon.telemetry)?;
runtime::serve(daemon).await
let telemetry = tracing::init(cli.verbose, &daemon.telemetry)?;
let result = runtime::serve(daemon).await;
tokio::task::spawn_blocking(move || telemetry.shutdown()).await?;
result
}
Command::InitConfig(args) => {
if let Some(path) = config::write_init_config(&args)? {