-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
## Motivation Currently, the various spawning methods on `tokio::task::JoinSet` and `tokio_util::task::JoinMap` lack `#[track_caller]` attributes, so the `tracing` spans generated for tasks spawned on `JoinSet`s/`JoinMap`s will have the `JoinSet` spawning method as their spawn location, rather than the user code that called that method. ## Solution This PR fixes that by...adding a bunch of `#[track_caller]` attributes. ## Future Work In the future, we may also want to consider adding additional data to the task span indicating that the task is spawned on a `JoinSet`... Signed-off-by: Eliza Weisman <[email protected]>
- Loading branch information
Showing
2 changed files
with
8 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters