Send installation id with crashes (#11032)
This will let us prioritize crashes that affect many users. Release Notes: - N/A
This commit is contained in:
parent
a4ad3bcc08
commit
d9d509a2bb
2 changed files with 27 additions and 5 deletions
|
@ -136,6 +136,13 @@ pub async fn post_crash(
|
|||
.get("x-zed-panicked-on")
|
||||
.and_then(|h| h.to_str().ok())
|
||||
.and_then(|s| s.parse().ok());
|
||||
|
||||
let installation_id = headers
|
||||
.get("x-zed-installation-id")
|
||||
.and_then(|h| h.to_str().ok())
|
||||
.map(|s| s.to_string())
|
||||
.unwrap_or_default();
|
||||
|
||||
let mut recent_panic = None;
|
||||
|
||||
if let Some(recent_panic_on) = recent_panic_on {
|
||||
|
@ -160,6 +167,7 @@ pub async fn post_crash(
|
|||
os_version = %report.header.os_version,
|
||||
bundle_id = %report.header.bundle_id,
|
||||
incident_id = %report.header.incident_id,
|
||||
installation_id = %installation_id,
|
||||
description = %description,
|
||||
backtrace = %summary,
|
||||
"crash report");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue