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

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