From acd21f5c15c9077af5c8a4b9e1917c0b77bae453 Mon Sep 17 00:00:00 2001 From: Conrad Irwin Date: Fri, 1 Mar 2024 13:23:44 -0700 Subject: [PATCH] Upload crashes to collab directly (#8649) This lets us run rustc_demangle on the backtrace, which helps the Slack view significantly. We're also now uploading files to digital ocean's S3 equivalent (with a 1 month expiry) instead of to Slack. This PR paves the way for (but does not yet implement) sending this data to clickhouse too. Release Notes: - N/A --- crates/zed/src/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/zed/src/main.rs b/crates/zed/src/main.rs index c509a8d0c12ca2465b50afae83224b529b8e8e4c..bfdd0047690a650f313f9facb20f36900651a492 100644 --- a/crates/zed/src/main.rs +++ b/crates/zed/src/main.rs @@ -807,7 +807,7 @@ async fn upload_previous_crashes( .unwrap_or("zed-2024-01-17-221900.ips".to_string()); // don't upload old crash reports from before we had this. let mut uploaded = last_uploaded.clone(); - let crash_report_url = http.build_url("/api/crash"); + let crash_report_url = http.build_zed_api_url("/telemetry/crashes"); for dir in [&*CRASHES_DIR, &*CRASHES_RETIRED_DIR] { let mut children = smol::fs::read_dir(&dir).await?;