Skip to content

Commit aa90ce5

Browse files
authored
refactor: allow resolve span to be disabled (#153)
1 parent 4dda024 commit aa90ce5

File tree

1 file changed

+2
-3
lines changed
  • src/client/legacy/connect

1 file changed

+2
-3
lines changed

src/client/legacy/connect/dns.rs

+2-3
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ use std::{fmt, io, vec};
3131

3232
use tokio::task::JoinHandle;
3333
use tower_service::Service;
34-
use tracing::{debug, debug_span};
34+
use tracing::debug_span;
3535

3636
pub(super) use self::sealed::Resolve;
3737

@@ -118,10 +118,9 @@ impl Service<Name> for GaiResolver {
118118
}
119119

120120
fn call(&mut self, name: Name) -> Self::Future {
121-
let span = debug_span!("resolve", host = %name.host).or_current();
121+
let span = debug_span!("resolve", host = %name.host);
122122
let blocking = tokio::task::spawn_blocking(move || {
123123
let _enter = span.enter();
124-
debug!(host = name.host, "resolving");
125124
(&*name.host, 0)
126125
.to_socket_addrs()
127126
.map(|i| SocketAddrs { iter: i })

0 commit comments

Comments
 (0)