diff --git a/crates/dht/src/dht.rs b/crates/dht/src/dht.rs index 2ebfdaf2..82474f95 100644 --- a/crates/dht/src/dht.rs +++ b/crates/dht/src/dht.rs @@ -42,7 +42,7 @@ use tokio::{ }; use tokio_util::sync::CancellationToken; -use tracing::{debug, debug_span, error, error_span, info, trace, warn, Instrument}; +use tracing::{debug, debug_span, error, error_span, info, trace, trace_span, warn, Instrument}; #[derive(Debug, Serialize)] pub struct DhtStats { @@ -999,7 +999,7 @@ impl DhtWorker { debug!("error: {e:#}"); } } - }.instrument(error_span!("ping", addr=addr.to_string()))) + }.instrument(trace_span!("ping", addr=addr.to_string()))) }, _ = futs.next(), if !futs.is_empty() => {}, }