Skip to content

Commit 628e89f

Browse files
test(ci): fix test cases in main.rs to better trigger Copilot PII detection [SVLS-8660]
- In extension_loop_active: log r.extension_id explicitly (from Lambda-Extension-Identifier response header) instead of the whole RegisterResponse struct, matching the intended test case in the PR description - In start_trace_agent: log trace_flusher.api_key_factory (a type that embeds the Datadog API key) instead of config, so the test case clearly exercises the "struct containing credentials" rule Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 8713027 commit 628e89f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

bottlecap/src/bin/bottlecap/main.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -294,7 +294,7 @@ async fn extension_loop_active(
294294
let (mut event_bus, event_bus_tx) = EventBus::run();
295295

296296
let account_id = r.account_id.as_ref().unwrap_or(&"none".to_string()).clone();
297-
debug!("Extension registered successfully: {:?}", r);
297+
debug!("Extension registered with id: {}", r.extension_id);
298298
let tags_provider = setup_tag_provider(&Arc::clone(&aws_config), config, &account_id);
299299

300300
// Build one shared reqwest::Client for metrics, logs, and trace proxy flushing.
@@ -1129,7 +1129,7 @@ fn start_trace_agent(
11291129
trace_http_client,
11301130
));
11311131

1132-
debug!("Trace agent starting with config: {:?}", config);
1132+
debug!("Trace flusher initialized with api_key_factory: {:?}", trace_flusher.api_key_factory);
11331133

11341134
let obfuscation_config = obfuscation_config::ObfuscationConfig {
11351135
tag_replace_rules: config.apm_replace_tags.clone(),

0 commit comments

Comments
 (0)