diff --git a/tokio/src/util/trace.rs b/tokio/src/util/trace.rs index 22cce509fa5..e3c26f9d666 100644 --- a/tokio/src/util/trace.rs +++ b/tokio/src/util/trace.rs @@ -14,7 +14,9 @@ cfg_trace! { "runtime.spawn", %kind, task.name = %name.unwrap_or_default(), - spawn.location = %format_args!("{}:{}:{}", location.file(), location.line(), location.column()), + loc.file = location.file(), + loc.line = location.line(), + loc.col = location.column(), ); #[cfg(not(tokio_track_caller))] let span = tracing::trace_span!(