From 018eb06091d437fe293024cd6d9a75c129c59b8d Mon Sep 17 00:00:00 2001 From: "Joseph T. Lyons" Date: Tue, 18 Jul 2023 12:32:53 -0400 Subject: [PATCH] Add is_staff to events --- crates/client/src/telemetry.rs | 2 ++ script/start-local-collaboration | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/crates/client/src/telemetry.rs b/crates/client/src/telemetry.rs index 959f4cc783..dc5154d96f 100644 --- a/crates/client/src/telemetry.rs +++ b/crates/client/src/telemetry.rs @@ -40,6 +40,7 @@ lazy_static! { struct ClickhouseEventRequestBody { token: &'static str, installation_id: Option>, + is_staff: Option, app_version: Option>, os_name: &'static str, os_version: Option>, @@ -224,6 +225,7 @@ impl Telemetry { &ClickhouseEventRequestBody { token: ZED_SECRET_CLIENT_TOKEN, installation_id: state.installation_id.clone(), + is_staff: state.is_staff.clone(), app_version: state.app_version.clone(), os_name: state.os_name, os_version: state.os_version.clone(), diff --git a/script/start-local-collaboration b/script/start-local-collaboration index b702fb4e02..6c256abefe 100755 --- a/script/start-local-collaboration +++ b/script/start-local-collaboration @@ -45,7 +45,7 @@ position_2=${half_width},${y} # Authenticate using the collab server's admin secret. export ZED_STATELESS=1 export ZED_ADMIN_API_TOKEN=secret -export ZED_SERVER_URL=http://localhost:8080 +export ZED_SERVER_URL=http://localhost:3000 export ZED_WINDOW_SIZE=${half_width},${height} cargo build