@@ -448,7 +448,7 @@ impl<'a> Cfg<'a> {
448
448
Ok ( self . update_hash_dir . join ( toolchain. to_string ( ) ) )
449
449
}
450
450
451
- #[ cfg_attr ( feature = "otel " , tracing :: instrument ( skip_all) ) ]
451
+ #[ tracing :: instrument ( level = "trace " , skip_all) ]
452
452
pub ( crate ) fn upgrade_data ( & self ) -> Result < ( ) > {
453
453
let current_version = self . settings_file . with ( |s| Ok ( s. version ) ) ?;
454
454
if current_version == MetadataVersion :: default ( ) {
@@ -693,7 +693,7 @@ impl<'a> Cfg<'a> {
693
693
}
694
694
}
695
695
696
- #[ cfg_attr ( feature = "otel" , tracing :: instrument ) ]
696
+ #[ tracing :: instrument ( level = "trace" ) ]
697
697
pub ( crate ) async fn active_rustc_version ( & mut self ) -> Result < String > {
698
698
if let Some ( t) = self . process . args ( ) . find ( |x| x. starts_with ( '+' ) ) {
699
699
trace ! ( "Fetching rustc version from toolchain `{}`" , t) ;
@@ -734,7 +734,7 @@ impl<'a> Cfg<'a> {
734
734
} )
735
735
}
736
736
737
- #[ cfg_attr ( feature = "otel " , tracing :: instrument ( skip_all) ) ]
737
+ #[ tracing :: instrument ( level = "trace " , skip_all) ]
738
738
async fn find_or_install_active_toolchain ( & ' a self ) -> Result < ( Toolchain < ' a > , ActiveReason ) > {
739
739
match self . find_override_config ( ) ? {
740
740
Some ( ( override_config, reason) ) => match override_config {
@@ -839,7 +839,7 @@ impl<'a> Cfg<'a> {
839
839
/// - not files
840
840
/// - named with a valid resolved toolchain name
841
841
/// Currently no notification of incorrect names or entry type is done.
842
- #[ cfg_attr ( feature = "otel " , tracing :: instrument ( skip_all) ) ]
842
+ #[ tracing :: instrument ( level = "trace " , skip_all) ]
843
843
pub ( crate ) fn list_toolchains ( & self ) -> Result < Vec < ToolchainName > > {
844
844
if utils:: is_directory ( & self . toolchains_dir ) {
845
845
let mut toolchains: Vec < _ > = utils:: read_dir ( "toolchains" , & self . toolchains_dir ) ?
@@ -921,7 +921,7 @@ impl<'a> Cfg<'a> {
921
921
} )
922
922
}
923
923
924
- #[ cfg_attr ( feature = "otel " , tracing :: instrument ( skip_all) ) ]
924
+ #[ tracing :: instrument ( level = "trace " , skip_all) ]
925
925
pub ( crate ) fn get_default_host_triple ( & self ) -> Result < dist:: TargetTriple > {
926
926
self . settings_file
927
927
. with ( |s| Ok ( get_default_host_triple ( s, self . process ) ) )
0 commit comments