@@ -24,7 +24,7 @@ impl<N: Network, C: ConsensusStorage<N>> Ledger<N, C> {
2424 ///
2525 /// # Panics
2626 /// This function panics if called from an async context.
27- #[ cfg_attr( feature = "instrumentation" , tracing:: instrument( skip_all) ) ]
27+ #[ cfg_attr( feature = "instrumentation" , tracing:: instrument( skip_all, fields ( height=block . height ( ) ) ) ) ]
2828 pub fn check_next_block < R : CryptoRng + Rng > ( & self , block : & Block < N > , rng : & mut R ) -> Result < ( ) > {
2929 let height = block. height ( ) ;
3030 let latest_block = self . latest_block ( ) ;
@@ -146,7 +146,7 @@ impl<N: Network, C: ConsensusStorage<N>> Ledger<N, C> {
146146 ///
147147 /// This does not verify that the batches are signed correctly or that the edges are valid
148148 /// (only point to the previous round), as those checks already happened when the node received the batch.
149- #[ cfg_attr( feature = "instrumentation" , tracing:: instrument( skip_all) ) ]
149+ #[ cfg_attr( feature = "instrumentation" , tracing:: instrument( skip_all, fields ( height=block . height ( ) ) ) ) ]
150150 fn check_block_subdag_leaves ( & self , block : & Block < N > ) -> Result < ( ) > {
151151 // Check if the block has a subdag.
152152 let Authority :: Quorum ( subdag) = block. authority ( ) else {
@@ -188,7 +188,7 @@ impl<N: Network, C: ConsensusStorage<N>> Ledger<N, C> {
188188 /// Check that the certificates in the block subdag have met quorum requirements.
189189 ///
190190 /// Called by [`Self::check_block_subdag`]
191- #[ cfg_attr( feature = "instrumentation" , tracing:: instrument( skip_all) ) ]
191+ #[ cfg_attr( feature = "instrumentation" , tracing:: instrument( skip_all, fields ( height=block . height ( ) ) ) ) ]
192192 fn check_block_subdag_quorum ( & self , block : & Block < N > ) -> Result < ( ) > {
193193 // Check if the block has a subdag.
194194 let subdag = match block. authority ( ) {
0 commit comments