mirror of
https://github.com/paradigmxyz/reth.git
synced 2026-02-19 03:04:27 -05:00
chore: add span and log to runtime build (#22064)
This commit is contained in:
@@ -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"
|
||||
|
||||
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user