@@ -250,6 +250,9 @@ fn create_api_key_factory(config: &Arc<Config>, aws_config: &Arc<AwsConfig>) ->
250250 let aws_config = Arc :: clone ( aws_config) ;
251251 let api_key_secret_reload_interval = config. api_key_secret_reload_interval ;
252252
253+ let api_key = & config. api_key ;
254+ debug ! ( "Resolved api_key={api_key} for factory initialization" ) ;
255+
253256 Arc :: new ( ApiKeyFactory :: new_from_resolver (
254257 Arc :: new ( move || {
255258 let config = Arc :: clone ( & config) ;
@@ -291,6 +294,7 @@ async fn extension_loop_active(
291294 let ( mut event_bus, event_bus_tx) = EventBus :: run ( ) ;
292295
293296 let account_id = r. account_id . as_ref ( ) . unwrap_or ( & "none" . to_string ( ) ) . clone ( ) ;
297+ debug ! ( "Extension registered successfully: {:?}" , r) ;
294298 let tags_provider = setup_tag_provider ( & Arc :: clone ( & aws_config) , config, & account_id) ;
295299
296300 // Build one shared reqwest::Client for metrics, logs, and trace proxy flushing.
@@ -1125,6 +1129,8 @@ fn start_trace_agent(
11251129 trace_http_client,
11261130 ) ) ;
11271131
1132+ debug ! ( "Trace agent starting with config: {:?}" , config) ;
1133+
11281134 let obfuscation_config = obfuscation_config:: ObfuscationConfig {
11291135 tag_replace_rules : config. apm_replace_tags . clone ( ) ,
11301136 http_remove_path_digits : config. apm_config_obfuscation_http_remove_paths_with_digits ,
@@ -1296,6 +1302,9 @@ fn start_metrics_flushers(
12961302
12971303 // Create a flusher for each endpoint URL and API key pair
12981304 for api_key in api_keys {
1305+ debug ! (
1306+ "Configuring additional endpoint flusher: endpoint={endpoint_url} api_key={api_key}"
1307+ ) ;
12991308 let additional_api_key_factory = Arc :: new ( ApiKeyFactory :: new ( api_key) ) ;
13001309 let additional_flusher_config = MetricsFlusherConfig {
13011310 api_key_factory : additional_api_key_factory,
0 commit comments