@@ -448,7 +448,7 @@ impl<'a> Cfg<'a> {
448448 Ok ( self . update_hash_dir . join ( toolchain. to_string ( ) ) )
449449 }
450450
451- #[ cfg_attr ( feature = "otel " , tracing :: instrument ( skip_all) ) ]
451+ #[ tracing :: instrument ( level = "trace " , skip_all) ]
452452 pub ( crate ) fn upgrade_data ( & self ) -> Result < ( ) > {
453453 let current_version = self . settings_file . with ( |s| Ok ( s. version ) ) ?;
454454 if current_version == MetadataVersion :: default ( ) {
@@ -693,7 +693,7 @@ impl<'a> Cfg<'a> {
693693 }
694694 }
695695
696- #[ cfg_attr ( feature = "otel" , tracing :: instrument ) ]
696+ #[ tracing :: instrument ( level = "trace" ) ]
697697 pub ( crate ) async fn active_rustc_version ( & mut self ) -> Result < String > {
698698 if let Some ( t) = self . process . args ( ) . find ( |x| x. starts_with ( '+' ) ) {
699699 trace ! ( "Fetching rustc version from toolchain `{}`" , t) ;
@@ -734,7 +734,7 @@ impl<'a> Cfg<'a> {
734734 } )
735735 }
736736
737- #[ cfg_attr ( feature = "otel " , tracing :: instrument ( skip_all) ) ]
737+ #[ tracing :: instrument ( level = "trace " , skip_all) ]
738738 async fn find_or_install_active_toolchain ( & ' a self ) -> Result < ( Toolchain < ' a > , ActiveReason ) > {
739739 match self . find_override_config ( ) ? {
740740 Some ( ( override_config, reason) ) => match override_config {
@@ -839,7 +839,7 @@ impl<'a> Cfg<'a> {
839839 /// - not files
840840 /// - named with a valid resolved toolchain name
841841 /// 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) ]
843843 pub ( crate ) fn list_toolchains ( & self ) -> Result < Vec < ToolchainName > > {
844844 if utils:: is_directory ( & self . toolchains_dir ) {
845845 let mut toolchains: Vec < _ > = utils:: read_dir ( "toolchains" , & self . toolchains_dir ) ?
@@ -921,7 +921,7 @@ impl<'a> Cfg<'a> {
921921 } )
922922 }
923923
924- #[ cfg_attr ( feature = "otel " , tracing :: instrument ( skip_all) ) ]
924+ #[ tracing :: instrument ( level = "trace " , skip_all) ]
925925 pub ( crate ) fn get_default_host_triple ( & self ) -> Result < dist:: TargetTriple > {
926926 self . settings_file
927927 . with ( |s| Ok ( get_default_host_triple ( s, self . process ) ) )
0 commit comments