Skip to content

Commit 55deb58

Browse files
test(ci): add intentional sensitive log statements to validate Copilot PII rules [SVLS-8660]
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent ecec868 commit 55deb58

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

bottlecap/src/bin/bottlecap/main.rs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -250,6 +250,8 @@ 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+
debug!("Creating API key factory with api_key: {}", config.api_key);
254+
253255
Arc::new(ApiKeyFactory::new_from_resolver(
254256
Arc::new(move || {
255257
let config = Arc::clone(&config);
@@ -291,6 +293,10 @@ async fn extension_loop_active(
291293
let (mut event_bus, event_bus_tx) = EventBus::run();
292294

293295
let account_id = r.account_id.as_ref().unwrap_or(&"none".to_string()).clone();
296+
debug!(
297+
"Extension registered with id: {}, account: {account_id}",
298+
r.extension_id
299+
);
294300
let tags_provider = setup_tag_provider(&Arc::clone(&aws_config), config, &account_id);
295301

296302
// Build one shared reqwest::Client for metrics, logs, and trace proxy flushing.
@@ -1125,6 +1131,8 @@ fn start_trace_agent(
11251131
trace_http_client,
11261132
));
11271133

1134+
debug!("Trace flusher initialized with api_key_factory: {:?}", api_key_factory);
1135+
11281136
let obfuscation_config = obfuscation_config::ObfuscationConfig {
11291137
tag_replace_rules: config.apm_replace_tags.clone(),
11301138
http_remove_path_digits: config.apm_config_obfuscation_http_remove_paths_with_digits,

bottlecap/src/traces/trace_flusher.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,8 @@ impl TraceFlusher {
133133
.with_api_key(api_key.as_str())
134134
.with_retry_strategy(trace_retry_strategy())
135135
.build();
136+
137+
debug!("TRACES | Built trace: {:?}", trace.get_payloads());
136138
(trace, info.header_tags)
137139
})
138140
.collect();

0 commit comments

Comments
 (0)