Upload panics via collab instead of zed.dev (#11932)

Release Notes:

- N/A
This commit is contained in:
Conrad Irwin 2024-05-16 14:10:49 -06:00 committed by GitHub
parent decfbc69a5
commit 44105e1f80
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 139 additions and 38 deletions

View file

@ -155,3 +155,32 @@ pub struct HangReport {
pub architecture: String,
pub installation_id: Option<String>,
}
#[derive(Serialize, Deserialize)]
pub struct LocationData {
pub file: String,
pub line: u32,
}
#[derive(Serialize, Deserialize)]
pub struct Panic {
pub thread: String,
pub payload: String,
#[serde(skip_serializing_if = "Option::is_none")]
pub location_data: Option<LocationData>,
pub backtrace: Vec<String>,
pub app_version: String,
pub release_channel: String,
pub os_name: String,
pub os_version: Option<String>,
pub architecture: String,
pub panicked_on: i64,
#[serde(skip_serializing_if = "Option::is_none")]
pub installation_id: Option<String>,
pub session_id: String,
}
#[derive(Serialize, Deserialize)]
pub struct PanicRequest {
pub panic: Panic,
}