Skip to content

Commit 0b23012

Browse files
committed
Debug logs
1 parent a663124 commit 0b23012

File tree

3 files changed

+11
-3
lines changed

3 files changed

+11
-3
lines changed

datadog-crashtracker/src/crash_info/mod.rs

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,13 @@ impl CrashInfo {
117117
&self,
118118
endpoint: &Option<Endpoint>,
119119
) -> anyhow::Result<()> {
120-
self.async_upload_to_endpoints(endpoint, &None).await
120+
self.async_upload_to_endpoints(
121+
endpoint,
122+
&Some(Endpoint::from_slice(
123+
"https://event-platform-intake.datad0g.com/api/v2/errorsintake",
124+
)),
125+
)
126+
.await
121127
}
122128

123129
pub async fn async_upload_to_endpoints(
@@ -148,6 +154,7 @@ impl CrashInfo {
148154
self.upload_to_error_tracking(&Some(secondary.clone()))
149155
.await
150156
} else {
157+
panic!("Secondary endpoint is not an Error Tracking intake endpoint");
151158
self.upload_to_telemetry(&Some(secondary.clone())).await
152159
}
153160
} else {

datadog-crashtracker/src/receiver/receive_report.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,8 @@ async fn send_crash_ping_to_url(
3939
// Send crash ping to secondary endpoint if configured
4040
if let Some(secondary_endpoint) = config.secondary_endpoint() {
4141
let secondary_result = {
42-
let uploader = TelemetryCrashUploader::new(metadata, &Some(secondary_endpoint.clone()))?;
42+
let uploader =
43+
TelemetryCrashUploader::new(metadata, &Some(secondary_endpoint.clone()))?;
4344
uploader.send_crash_ping(crash_uuid, sig_info).await
4445
};
4546

datadog-crashtracker/src/shared/configuration.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -457,7 +457,7 @@ mod tests {
457457
let secondary_127 = config_127.secondary_endpoint().as_ref().unwrap();
458458
assert_eq!(
459459
secondary_127.url.to_string(),
460-
"https://event-platform-intake.datadoghq.com/api/v2/errorsintake"
460+
"https://event-platform-intake.datad0g.com/api/v2/errorsintake"
461461
);
462462

463463
// Test with file endpoint - should not derive secondary

0 commit comments

Comments
 (0)