-
Notifications
You must be signed in to change notification settings - Fork 976
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(swarm): Show task spawn
paths in tokio-console
#5465
Conversation
@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 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi Yianis, thanks for this. Can you explain the difference in the two pictures that putting #[track_caller]
addresses? And shouldn't this be covered in tokio
instead, like this PR addresses? Thanks!
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 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok thanks LGTM!
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 allspawn
wrappers.Notes & open questions
#[track_caller]
on a trait does not affect or break its definition.Before
After
Change checklist