@@ -131,11 +131,12 @@ impl<M: ProcManager> Host<M> {
131131 /// Serve a host using the provided ProcManager, on the provided `addr`.
132132 /// On success, the host will multiplex messages for procs on the host
133133 /// on the address of the host.
134+ #[ tracing:: instrument( skip( manager) ) ]
134135 pub async fn serve (
135136 manager : M ,
136137 addr : ChannelAddr ,
137138 ) -> Result < ( Self , MailboxServerHandle ) , HostError > {
138- let ( frontend_addr, frontend_rx) = channel:: serve ( addr, "host frontend" ) ?;
139+ let ( frontend_addr, frontend_rx) = channel:: serve ( addr) ?;
139140
140141 // We set up a cascade of routers: first, the outer router supports
141142 // sending to the the system proc, while the dial router manages dialed
@@ -144,8 +145,7 @@ impl<M: ProcManager> Host<M> {
144145
145146 // Establish a backend channel on the preferred transport. We currently simply
146147 // serve the same router on both.
147- let ( backend_addr, backend_rx) =
148- channel:: serve ( ChannelAddr :: any ( manager. transport ( ) ) , "host backend" ) ?;
148+ let ( backend_addr, backend_rx) = channel:: serve ( ChannelAddr :: any ( manager. transport ( ) ) ) ?;
149149
150150 // Set up a system proc. This is often used to manage the host itself.
151151 let service_proc_id = ProcId :: Direct ( frontend_addr. clone ( ) , "service" . to_string ( ) ) ;
@@ -863,6 +863,7 @@ where
863863 ChannelTransport :: Local
864864 }
865865
866+ #[ tracing:: instrument( skip( self , _config) ) ]
866867 async fn spawn (
867868 & self ,
868869 proc_id : ProcId ,
@@ -874,10 +875,7 @@ where
874875 proc_id. clone ( ) ,
875876 MailboxClient :: dial ( forwarder_addr) ?. into_boxed ( ) ,
876877 ) ;
877- let ( proc_addr, rx) = channel:: serve (
878- ChannelAddr :: any ( transport) ,
879- & format ! ( "LocalProcManager spawning: {}" , & proc_id) ,
880- ) ?;
878+ let ( proc_addr, rx) = channel:: serve ( ChannelAddr :: any ( transport) ) ?;
881879 self . procs
882880 . lock ( )
883881 . await
@@ -1043,16 +1041,15 @@ where
10431041 ChannelTransport :: Unix
10441042 }
10451043
1044+ #[ tracing:: instrument( skip( self , _config) ) ]
10461045 async fn spawn (
10471046 & self ,
10481047 proc_id : ProcId ,
10491048 forwarder_addr : ChannelAddr ,
10501049 _config : ( ) ,
10511050 ) -> Result < Self :: Handle , HostError > {
1052- let ( callback_addr, mut callback_rx) = channel:: serve (
1053- ChannelAddr :: any ( ChannelTransport :: Unix ) ,
1054- & format ! ( "ProcessProcManager spawning: {}" , & proc_id) ,
1055- ) ?;
1051+ let ( callback_addr, mut callback_rx) =
1052+ channel:: serve ( ChannelAddr :: any ( ChannelTransport :: Unix ) ) ?;
10561053
10571054 let mut cmd = Command :: new ( & self . program ) ;
10581055 cmd. env ( "HYPERACTOR_HOST_PROC_ID" , proc_id. to_string ( ) ) ;
@@ -1138,6 +1135,7 @@ where
11381135/// forwarding messages to the provided `backend_addr`,
11391136/// and returning the proc's address and agent actor on
11401137/// the provided `callback_addr`.
1138+ #[ tracing:: instrument( skip( spawn) ) ]
11411139pub async fn spawn_proc < A , S , F > (
11421140 proc_id : ProcId ,
11431141 backend_addr : ChannelAddr ,
@@ -1163,10 +1161,7 @@ where
11631161
11641162 // Finally serve the proc on the same transport as the backend address,
11651163 // and call back.
1166- let ( proc_addr, proc_rx) = channel:: serve (
1167- ChannelAddr :: any ( backend_transport) ,
1168- & format ! ( "proc addr of: {}" , & proc_id) ,
1169- ) ?;
1164+ let ( proc_addr, proc_rx) = channel:: serve ( ChannelAddr :: any ( backend_transport) ) ?;
11701165 proc. clone ( ) . serve ( proc_rx) ;
11711166 channel:: dial ( callback_addr) ?
11721167 . send ( ( proc_addr, agent_handle. bind :: < A > ( ) ) )
0 commit comments