Skip to content

tor-rtcompat: use track-caller for thin wrappers

Jim Newsome requested to merge jnewsome/arti:track-caller into main

In particular, when the (unstable) tokio tracing feature is enabled, every tracing line includes the name of where the current task was created. Without this change, that ends up being the name of intermediate trait methods like TokioRuntimeHandle::block_on, which is not very helpful.

Adding the track_caller attribute causes the name of the caller of these methods to be used instead, which is typically more helpful.

IIUC this change is not breaking in terms of semver https://rustc-dev-guide.rust-lang.org/backend/implicit-caller-location.html.

Merge request reports

Loading