Skip to content

armgit / zed

Public Imported from GitHub
0

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.

Tag crash reports with panic message and release (#35692)

Julia Ryana884e861e98a
diff --git a/crates/zed/src/reliability.rs b/crates/zed/src/reliability.rs
index df50ecc7438..53539699cc1 100644
--- a/crates/zed/src/reliability.rs
+++ b/crates/zed/src/reliability.rs
@@ -554,6 +554,10 @@ async fn upload_previous_panics(
.log_err();
}
+ if MINIDUMP_ENDPOINT.is_none() {
+ return Ok(most_recent_panic);
+ }
+
// loop back over the directory again to upload any minidumps that are missing panics
let mut children = smol::fs::read_dir(paths::logs_dir()).await?;
while let Some(child) = children.next().await {
@@ -598,11 +602,12 @@ async fn upload_minidump(
)
.text("platform", "rust");
if let Some(panic) = panic {
- form = form.text(
- "release",
- format!("{}-{}", panic.release_channel, panic.app_version),
- );
- // TODO: tack on more fields
+ form = form
+ .text(
+ "sentry[release]",
+ format!("{}-{}", panic.release_channel, panic.app_version),
+ )
+ .text("sentry[logentry][formatted]", panic.payload.clone());
}
let mut response_text = String::new();