Skip to content

Commit

Permalink
Reintroduced the lost span (#182)
Browse files Browse the repository at this point in the history
It was removed by accident during the instrumentation refactor.
The span name is intentionally short, so that the logs don't become too
verbose
  • Loading branch information
pompon0 authored Aug 14, 2024
1 parent 8cf593d commit 9a255d2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion node/actors/network/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,7 @@ impl Runner {
.net
.gossip
.run_outbound_stream(ctx, peer, addr.clone())
.instrument(tracing::info_span!("out", ?addr))
.await;
if let Err(err) = res {
tracing::info!("gossip.run_outbound_stream({addr:?}): {err:#}");
Expand Down Expand Up @@ -208,7 +209,7 @@ impl Runner {
}
anyhow::Ok(())
}
.instrument(tracing::info_span!("accept_connection", ?addr))
.instrument(tracing::info_span!("in", ?addr))
.await;
if let Err(err) = res {
tracing::info!("{addr}: {err:#}");
Expand Down

0 comments on commit 9a255d2

Please sign in to comment.