Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Hide the tracing implications of spawning tasks or threads
Summary: As we are migrating from slog to tracing, we will need to do the same thing everywhere we spawn a tokio task or a thread: propagate the parent span. This will allow us to behave conceptually closer to the slog way of thinking. To make it easy to transition, introduce: * `mononoke::spawn_task` that will replace `tokio::spawn` * `mononoke::spawn_thread` that will replace `thread::spawn` Both will silently do whatever they need to do for `tracing` to be seemlessly functional. Reviewed By: markbt Differential Revision: D68956886 fbshipit-source-id: a28bd0d90ab5dcde04ea03f78a9aab1940566e7f
- Loading branch information