Skip to content
This repository has been archived by the owner on Oct 23, 2022. It is now read-only.

Fix multinode test spans #453

Merged
merged 5 commits into from
Jan 27, 2021
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
doc: fix comments on spans
  • Loading branch information
koivunej committed Jan 26, 2021
commit 143cdff62db9b213c181eaa8887d352f92fc447a
4 changes: 2 additions & 2 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -363,14 +363,14 @@ impl<Types: IpfsTypes> UninitializedIpfs<Types> {
// the "current" span which is not entered but the awaited futures are instrumented with it
let init_span = tracing::trace_span!(parent: &root_span, "init");

// stored in the Ipfs, added on every method call
// stored in the Ipfs, instrumenting every method call
let facade_span = tracing::trace_span!("facade");

// stored in the executor given to libp2p, used to spawn at least the connections,
// instrumenting each of those.
let exec_span = tracing::trace_span!(parent: &root_span, "exec");

// stored in the IpfsFuture, the background task.
// instruments the IpfsFuture, the background task.
let swarm_span = tracing::trace_span!(parent: &root_span, "swarm");

repo.init().instrument(init_span.clone()).await?;
Expand Down