@@ -130,11 +130,12 @@ impl<M: ProcManager> Host<M> {
130130 /// Serve a host using the provided ProcManager, on the provided `addr`.
131131 /// On success, the host will multiplex messages for procs on the host
132132 /// on the address of the host.
133+ #[ tracing:: instrument( skip( manager) ) ]
133134 pub async fn serve (
134135 manager : M ,
135136 addr : ChannelAddr ,
136137 ) -> Result < ( Self , MailboxServerHandle ) , HostError > {
137- let ( frontend_addr, frontend_rx) = channel:: serve ( addr, "host frontend" ) ?;
138+ let ( frontend_addr, frontend_rx) = channel:: serve ( addr) ?;
138139
139140 // We set up a cascade of routers: first, the outer router supports
140141 // sending to the the system proc, while the dial router manages dialed
@@ -143,8 +144,7 @@ impl<M: ProcManager> Host<M> {
143144
144145 // Establish a backend channel on the preferred transport. We currently simply
145146 // serve the same router on both.
146- let ( backend_addr, backend_rx) =
147- channel:: serve ( ChannelAddr :: any ( manager. transport ( ) ) , "host backend" ) ?;
147+ let ( backend_addr, backend_rx) = channel:: serve ( ChannelAddr :: any ( manager. transport ( ) ) ) ?;
148148
149149 // Set up a system proc. This is often used to manage the host itself.
150150 let service_proc_id = ProcId :: Direct ( frontend_addr. clone ( ) , "service" . to_string ( ) ) ;
@@ -854,6 +854,7 @@ where
854854 ChannelTransport :: Local
855855 }
856856
857+ #[ tracing:: instrument( skip( self , _config) ) ]
857858 async fn spawn (
858859 & self ,
859860 proc_id : ProcId ,
@@ -865,10 +866,7 @@ where
865866 proc_id. clone ( ) ,
866867 MailboxClient :: dial ( forwarder_addr) ?. into_boxed ( ) ,
867868 ) ;
868- let ( proc_addr, rx) = channel:: serve (
869- ChannelAddr :: any ( transport) ,
870- & format ! ( "LocalProcManager spawning: {}" , & proc_id) ,
871- ) ?;
869+ let ( proc_addr, rx) = channel:: serve ( ChannelAddr :: any ( transport) ) ?;
872870 self . procs
873871 . lock ( )
874872 . await
@@ -1033,16 +1031,15 @@ where
10331031 ChannelTransport :: Unix
10341032 }
10351033
1034+ #[ tracing:: instrument( skip( self , _config) ) ]
10361035 async fn spawn (
10371036 & self ,
10381037 proc_id : ProcId ,
10391038 forwarder_addr : ChannelAddr ,
10401039 _config : ( ) ,
10411040 ) -> Result < Self :: Handle , HostError > {
1042- let ( callback_addr, mut callback_rx) = channel:: serve (
1043- ChannelAddr :: any ( ChannelTransport :: Unix ) ,
1044- & format ! ( "ProcessProcManager spawning: {}" , & proc_id) ,
1045- ) ?;
1041+ let ( callback_addr, mut callback_rx) =
1042+ channel:: serve ( ChannelAddr :: any ( ChannelTransport :: Unix ) ) ?;
10461043
10471044 let mut cmd = Command :: new ( & self . program ) ;
10481045 cmd. env ( "HYPERACTOR_HOST_PROC_ID" , proc_id. to_string ( ) ) ;
@@ -1128,6 +1125,7 @@ where
11281125/// forwarding messages to the provided `backend_addr`,
11291126/// and returning the proc's address and agent actor on
11301127/// the provided `callback_addr`.
1128+ #[ tracing:: instrument( skip( spawn) ) ]
11311129pub async fn spawn_proc < A , S , F > (
11321130 proc_id : ProcId ,
11331131 backend_addr : ChannelAddr ,
@@ -1153,10 +1151,7 @@ where
11531151
11541152 // Finally serve the proc on the same transport as the backend address,
11551153 // and call back.
1156- let ( proc_addr, proc_rx) = channel:: serve (
1157- ChannelAddr :: any ( backend_transport) ,
1158- & format ! ( "proc addr of: {}" , & proc_id) ,
1159- ) ?;
1154+ let ( proc_addr, proc_rx) = channel:: serve ( ChannelAddr :: any ( backend_transport) ) ?;
11601155 proc. clone ( ) . serve ( proc_rx) ;
11611156 channel:: dial ( callback_addr) ?
11621157 . send ( ( proc_addr, agent_handle. bind :: < A > ( ) ) )
0 commit comments