File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -67,7 +67,7 @@ use std::sync::Arc;
67
67
68
68
use anyhow:: { Context as _, Error } ;
69
69
use lazycell:: LazyCell ;
70
- use tracing:: { debug, trace} ;
70
+ use tracing:: { debug, instrument , trace} ;
71
71
72
72
pub use self :: build_config:: { BuildConfig , CompileMode , MessageFormat , TimingOutput } ;
73
73
pub use self :: build_context:: {
@@ -140,10 +140,11 @@ pub trait Executor: Send + Sync + 'static {
140
140
pub struct DefaultExecutor ;
141
141
142
142
impl Executor for DefaultExecutor {
143
+ #[ instrument( name = "rustc" , skip_all, fields( package = id. name( ) . as_str( ) , process = cmd. to_string( ) ) ) ]
143
144
fn exec (
144
145
& self ,
145
146
cmd : & ProcessBuilder ,
146
- _id : PackageId ,
147
+ id : PackageId ,
147
148
_target : & Target ,
148
149
_mode : CompileMode ,
149
150
on_stdout_line : & mut dyn FnMut ( & str ) -> CargoResult < ( ) > ,
You can’t perform that action at this time.
0 commit comments