Skip to content

Commit 74a5f22

Browse files
committed
Try forcing direct upload
1 parent e159ec0 commit 74a5f22

File tree

1 file changed

+13
-14
lines changed

1 file changed

+13
-14
lines changed

datadog-crashtracker/src/crash_info/errors_intake.rs

Lines changed: 13 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,7 @@ impl ErrorsIntakeUploader {
228228

229229
// Always try agent proxy (parallel to telemetry agent proxy)
230230
let agent_url = format!(
231-
"http://{}:{}/evp_proxy/v2/api/v2/errorsintake",
231+
"http://{}:{}/evp_proxy/v4/api/v2/errorsintake",
232232
agent_host, agent_port
233233
);
234234
eprintln!("DEBUG: Sending to errors intake agent: {}", agent_url);
@@ -240,20 +240,19 @@ impl ErrorsIntakeUploader {
240240

241241
// Try direct intake if conditions are met (parallel to telemetry direct)
242242
if let Some(api_key) = api_key {
243-
if direct_enabled {
244-
let site = parse_env::str_not_empty("DD_SITE")
245-
.unwrap_or_else(|| "datad0g.com".to_string());
246-
let direct_url =
247-
format!("https://event-platform-intake.{}/api/v2/errorsintake", site);
248-
eprintln!("DEBUG: Sending to errors intake direct: {}", direct_url);
249-
250-
let direct_result = self
251-
.send_to_direct_intake(&direct_url, &api_key, payload)
252-
.await;
253-
if let Err(e) = &direct_result {
254-
eprintln!("Failed to send to errors intake direct: {}", e);
255-
}
243+
// if direct_enabled {
244+
let site =
245+
parse_env::str_not_empty("DD_SITE").unwrap_or_else(|| "datad0g.com".to_string());
246+
let direct_url = format!("https://event-platform-intake.{}/api/v2/errorsintake", site);
247+
eprintln!("DEBUG: Sending to errors intake direct: {}", direct_url);
248+
249+
let direct_result = self
250+
.send_to_direct_intake(&direct_url, &api_key, payload)
251+
.await;
252+
if let Err(e) = &direct_result {
253+
eprintln!("Failed to send to errors intake direct: {}", e);
256254
}
255+
// }
257256
}
258257

259258
// Return success regardless of individual failures (best effort)

0 commit comments

Comments
 (0)