File tree Expand file tree Collapse file tree 3 files changed +9
-6
lines changed
beacon_node/beacon_chain/src Expand file tree Collapse file tree 3 files changed +9
-6
lines changed Original file line number Diff line number Diff line change @@ -1412,7 +1412,9 @@ impl<T: BeaconChainTypes> ExecutionPendingBlock<T> {
14121412 ) ?;
14131413 let is_valid_merge_transition_block =
14141414 is_merge_transition_block ( & parent. pre_state , block. message ( ) . body ( ) ) ;
1415+ let current_span = tracing:: Span :: current ( ) ;
14151416 let payload_verification_future = async move {
1417+ let _guard = current_span. enter ( ) ;
14161418 let chain = payload_notifier. chain . clone ( ) ;
14171419 let block = payload_notifier. block . clone ( ) ;
14181420
@@ -1453,14 +1455,10 @@ impl<T: BeaconChainTypes> ExecutionPendingBlock<T> {
14531455 // Spawn the payload verification future as a new task, but don't wait for it to complete.
14541456 // The `payload_verification_future` will be awaited later to ensure verification completed
14551457 // successfully.
1456- let current_span = tracing:: Span :: current ( ) ;
14571458 let payload_verification_handle = chain
14581459 . task_executor
14591460 . spawn_handle (
1460- async move {
1461- let _guard = current_span. enter ( ) ;
1462- payload_verification_future. await
1463- } ,
1461+ payload_verification_future,
14641462 "execution_payload_verification" ,
14651463 )
14661464 . ok_or ( BeaconChainError :: RuntimeShutdown ) ?;
Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ use state_processing::per_block_processing::{
2424} ;
2525use std:: sync:: Arc ;
2626use tokio:: task:: JoinHandle ;
27- use tracing:: { debug, instrument , warn} ;
27+ use tracing:: { debug, warn} ;
2828use tree_hash:: TreeHash ;
2929use types:: payload:: BlockProductionVersion ;
3030use types:: * ;
Original file line number Diff line number Diff line change @@ -689,6 +689,11 @@ fn run<E: EthSpec>(
689689
690690 let provider = opentelemetry_sdk:: trace:: SdkTracerProvider :: builder ( )
691691 . with_batch_exporter ( exporter)
692+ . with_resource (
693+ opentelemetry_sdk:: Resource :: builder ( )
694+ . with_service_name ( "lighthouse" )
695+ . build ( ) ,
696+ )
692697 . build ( ) ;
693698
694699 let tracer = provider. tracer ( "lighthouse" ) ;
You can’t perform that action at this time.
0 commit comments