@@ -697,7 +697,7 @@ impl GlobalCacheTracker {
697
697
///
698
698
/// These orphaned files will be added to `delete_paths` so that the
699
699
/// caller can delete them.
700
- #[ tracing:: instrument( skip_all ) ]
700
+ #[ tracing:: instrument( skip ( conn , gctx , base , delete_paths ) ) ]
701
701
fn sync_db_with_files (
702
702
conn : & Connection ,
703
703
now : Timestamp ,
@@ -797,7 +797,7 @@ impl GlobalCacheTracker {
797
797
}
798
798
799
799
/// For parent tables, add any entries that are on disk but aren't tracked in the db.
800
- #[ tracing:: instrument( skip_all ) ]
800
+ #[ tracing:: instrument( skip ( conn , now , base_path ) ) ]
801
801
fn update_parent_for_missing_from_db (
802
802
conn : & Connection ,
803
803
now : Timestamp ,
@@ -825,7 +825,7 @@ impl GlobalCacheTracker {
825
825
///
826
826
/// This could happen for example if the user manually deleted the file or
827
827
/// any such scenario where the filesystem and db are out of sync.
828
- #[ tracing:: instrument( skip_all ) ]
828
+ #[ tracing:: instrument( skip ( conn , base_path ) ) ]
829
829
fn update_db_for_removed (
830
830
conn : & Connection ,
831
831
parent_table_name : & str ,
@@ -855,7 +855,7 @@ impl GlobalCacheTracker {
855
855
}
856
856
857
857
/// Removes database entries for any files that are not on disk for the parent tables.
858
- #[ tracing:: instrument( skip_all ) ]
858
+ #[ tracing:: instrument( skip ( conn , base_path , child_base_paths , delete_paths ) ) ]
859
859
fn update_db_parent_for_removed_from_disk (
860
860
conn : & Connection ,
861
861
parent_table_name : & str ,
@@ -893,7 +893,7 @@ impl GlobalCacheTracker {
893
893
/// Updates the database to add any `.crate` files that are currently
894
894
/// not tracked (such as when they are downloaded by an older version of
895
895
/// cargo).
896
- #[ tracing:: instrument( skip_all ) ]
896
+ #[ tracing:: instrument( skip ( conn , now , base_path ) ) ]
897
897
fn populate_untracked_crate (
898
898
conn : & Connection ,
899
899
now : Timestamp ,
@@ -928,7 +928,7 @@ impl GlobalCacheTracker {
928
928
929
929
/// Updates the database to add any files that are currently not tracked
930
930
/// (such as when they are downloaded by an older version of cargo).
931
- #[ tracing:: instrument( skip_all ) ]
931
+ #[ tracing:: instrument( skip ( conn , now , gctx , base_path , populate_size ) ) ]
932
932
fn populate_untracked (
933
933
conn : & Connection ,
934
934
now : Timestamp ,
@@ -994,7 +994,7 @@ impl GlobalCacheTracker {
994
994
/// size.
995
995
///
996
996
/// `update_db_for_removed` should be called before this is called.
997
- #[ tracing:: instrument( skip_all ) ]
997
+ #[ tracing:: instrument( skip ( conn , gctx , base_path ) ) ]
998
998
fn update_null_sizes (
999
999
conn : & Connection ,
1000
1000
gctx : & GlobalContext ,
0 commit comments