@@ -27,7 +27,7 @@ use crossbeam::select;
2727use opamp_client:: StartedClient ;
2828use std:: sync:: Arc ;
2929use std:: time:: SystemTime ;
30- use tracing:: { debug, error, info, warn} ;
30+ use tracing:: { debug, error, info, instrument , warn} ;
3131
3232pub struct AgentControl < S , O , HR , SL , DV >
3333where
@@ -141,6 +141,7 @@ where
141141 // * Recreate the Final Agent using the Agent Type and the latest persisted config
142142 // * Build a Stopped Sub Agent
143143 // * Run the Sub Agent and add it to the Running Sub Agents
144+ #[ instrument( skip_all) ]
144145 pub ( super ) fn recreate_sub_agent (
145146 & self ,
146147 agent_identity : & AgentIdentity ,
@@ -149,12 +150,10 @@ where
149150 > ,
150151 ) -> Result < ( ) , AgentError > {
151152 running_sub_agents. stop_and_remove ( & agent_identity. id ) ?;
152-
153153 self . build_and_run_sub_agent ( agent_identity, running_sub_agents)
154154 }
155155
156- // build_sub_agents returns a collection of started sub agents given the corresponding
157- // EffectiveAgents
156+ // build_sub_agents returns a collection of started sub agents
158157 fn build_and_run_sub_agents (
159158 & self ,
160159 sub_agents : & SubAgentsMap ,
@@ -250,6 +249,7 @@ where
250249 }
251250 }
252251
252+ #[ instrument( skip_all) ]
253253 // apply an agent control remote config
254254 pub ( super ) fn apply_remote_agent_control_config (
255255 & self ,
0 commit comments