From 04543ed16b1fd2b1cfd1a5cd79f8d050aaf3bbaf Mon Sep 17 00:00:00 2001 From: DaniPopes <57450786+DaniPopes@users.noreply.github.com> Date: Wed, 11 Feb 2026 23:06:14 +0100 Subject: [PATCH] chore: add span and log to runtime build (#22064) --- Cargo.toml | 2 +- crates/tasks/src/runtime.rs | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/Cargo.toml b/Cargo.toml index f15d8783e0..5fb43a9a9c 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -544,7 +544,7 @@ strum_macros = "0.27" syn = "2.0" thiserror = { version = "2.0.0", default-features = false } tar = "0.4.44" -tracing = { version = "0.1.0", default-features = false } +tracing = { version = "0.1.0", default-features = false, features = ["attributes"] } tracing-appender = "0.2" url = { version = "2.3", default-features = false } zstd = "0.13" diff --git a/crates/tasks/src/runtime.rs b/crates/tasks/src/runtime.rs index 6c43f83ba2..5856b2bb39 100644 --- a/crates/tasks/src/runtime.rs +++ b/crates/tasks/src/runtime.rs @@ -793,7 +793,9 @@ impl RuntimeBuilder { /// The [`TaskManager`] is automatically spawned as a background task that monitors /// critical tasks for panics. Use [`Runtime::take_task_manager_handle`] to extract /// the join handle if you need to poll for panic errors. + #[tracing::instrument(level = "debug", skip_all)] pub fn build(self) -> Result { + debug!(?self.config, "Building runtime"); let config = self.config; let (owned_runtime, handle) = match &config.tokio {