mirror of
https://github.com/tokio-rs/tokio.git
synced 2025-09-25 12:00:35 +00:00

## 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 <eliza@buoyant.io>
tokio-util
Utilities for working with Tokio.
License
This project is licensed under the MIT license.
Contribution
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in Tokio by you, shall be licensed as MIT, without any additional terms or conditions.