mirror of
https://github.com/zed-industries/zed.git
synced 2025-01-24 02:46:43 +00:00
Add is_staff to events
This commit is contained in:
parent
96abba2b7d
commit
018eb06091
2 changed files with 3 additions and 1 deletions
|
@ -40,6 +40,7 @@ lazy_static! {
|
||||||
struct ClickhouseEventRequestBody {
|
struct ClickhouseEventRequestBody {
|
||||||
token: &'static str,
|
token: &'static str,
|
||||||
installation_id: Option<Arc<str>>,
|
installation_id: Option<Arc<str>>,
|
||||||
|
is_staff: Option<bool>,
|
||||||
app_version: Option<Arc<str>>,
|
app_version: Option<Arc<str>>,
|
||||||
os_name: &'static str,
|
os_name: &'static str,
|
||||||
os_version: Option<Arc<str>>,
|
os_version: Option<Arc<str>>,
|
||||||
|
@ -224,6 +225,7 @@ impl Telemetry {
|
||||||
&ClickhouseEventRequestBody {
|
&ClickhouseEventRequestBody {
|
||||||
token: ZED_SECRET_CLIENT_TOKEN,
|
token: ZED_SECRET_CLIENT_TOKEN,
|
||||||
installation_id: state.installation_id.clone(),
|
installation_id: state.installation_id.clone(),
|
||||||
|
is_staff: state.is_staff.clone(),
|
||||||
app_version: state.app_version.clone(),
|
app_version: state.app_version.clone(),
|
||||||
os_name: state.os_name,
|
os_name: state.os_name,
|
||||||
os_version: state.os_version.clone(),
|
os_version: state.os_version.clone(),
|
||||||
|
|
|
@ -45,7 +45,7 @@ position_2=${half_width},${y}
|
||||||
# Authenticate using the collab server's admin secret.
|
# Authenticate using the collab server's admin secret.
|
||||||
export ZED_STATELESS=1
|
export ZED_STATELESS=1
|
||||||
export ZED_ADMIN_API_TOKEN=secret
|
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}
|
export ZED_WINDOW_SIZE=${half_width},${height}
|
||||||
|
|
||||||
cargo build
|
cargo build
|
||||||
|
|
Loading…
Reference in a new issue