feat(swarm): Show task spawn paths in tokio-console#5465
feat(swarm): Show task spawn paths in tokio-console#5465mergify[bot] merged 7 commits intolibp2p:masterfrom
spawn paths in tokio-console#5465Conversation
|
@oblique we have a rust-libp2p maintainer's call every two weeks that I think you should attend. The next one is starting right now: https://lu.ma/2024-07-02-rust-libp2p The one after that is in two weeks: https://lu.ma/2024-07-16-rust-libp2p |
In the before picture, all libp2p's tasks show that they started from In the after picture you can see
Tokio covers this. However, because we define a wrapper to |
Approvals have been dismissed because the PR was updated after the send-it label was applied.
This PR adds `#[track_caller]` on all `spawn` wrappers. Pull-Request: libp2p#5465.
Description
This PR adds
#[track_caller]on allspawnwrappers.Notes & open questions
#[track_caller]on a trait does not affect or break its definition.Before

After

Change checklist