chore: add span and log to runtime build (#22064)

This commit is contained in:
DaniPopes
2026-02-11 23:06:14 +01:00
committed by GitHub
parent ae3f0d4d1a
commit 04543ed16b
2 changed files with 3 additions and 1 deletions

View File

@@ -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"

View File

@@ -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<Runtime, RuntimeBuildError> {
debug!(?self.config, "Building runtime");
let config = self.config;
let (owned_runtime, handle) = match &config.tokio {