Skip to content

Commit

Permalink
instrument spawned task
Browse files Browse the repository at this point in the history
  • Loading branch information
dignifiedquire committed Nov 29, 2024
1 parent 8faef44 commit 0eaed7d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions iroh/src/protocol.rs
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ use futures_buffered::join_all;
use futures_lite::future::Boxed as BoxedFuture;
use tokio::{sync::Mutex, task::JoinSet};
use tokio_util::{sync::CancellationToken, task::AbortOnDropHandle};
use tracing::{error, trace, warn};
use tracing::{error, info_span, trace, warn, Instrument};

use crate::{endpoint::Connecting, Endpoint};

Expand Down Expand Up @@ -316,7 +316,7 @@ impl RouterBuilder {
let token = cancel_token.child_token();
join_set.spawn(async move {
token.run_until_cancelled(handle_connection(incoming, protocols)).await
});
}.instrument(info_span!("router.accept")));
},
}
}
Expand Down

0 comments on commit 0eaed7d

Please sign in to comment.