From 158cdc33ba37165420477bec3fd439abce476f7f Mon Sep 17 00:00:00 2001 From: Marshall Bowers Date: Mon, 9 Dec 2024 17:13:41 -0500 Subject: [PATCH] collab: Attach additional properties to `Language Model Used` event (#21770) This PR attaches two new properties to the `Language Model Used` event: - `has_llm_subscription` - This will tell us if a user is a paid subscriber. - `max_monthly_spend_in_cents` - This will indicate what their maximum monthly spend is set to. Release Notes: - N/A --- crates/collab/src/llm.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/crates/collab/src/llm.rs b/crates/collab/src/llm.rs index 94329c0b6f546..22eb35305c943 100644 --- a/crates/collab/src/llm.rs +++ b/crates/collab/src/llm.rs @@ -744,6 +744,8 @@ impl Drop for TokenCountingStream { ); let properties = json!({ + "has_llm_subscription": claims.has_llm_subscription, + "max_monthly_spend_in_cents": claims.max_monthly_spend_in_cents, "plan": match claims.plan { Plan::Free => "free".to_string(), Plan::ZedPro => "zed_pro".to_string(),