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.

Send Country/OS/Version amplitude style (#20884)

Conrad Irwin705a06c3dd62
diff --git a/crates/collab/src/api/events.rs b/crates/collab/src/api/events.rs
index 57ac43ca56d..1c936bac392 100644
--- a/crates/collab/src/api/events.rs
+++ b/crates/collab/src/api/events.rs
@@ -1561,6 +1561,9 @@ fn for_snowflake(
let user_properties = Some(serde_json::json!({
"is_staff": body.is_staff,
+ "Country": country_code.clone(),
+ "OS": format!("{} {}", body.os_name, body.os_version.clone().unwrap_or_default()),
+ "Version": body.app_version.clone(),
}));
Some(SnowflakeRow {