Macro is a unified workspace for teams: email, chat, docs, tasks, agents, calls, and CRM — @-linked together with shared AI memory.
TypeScript agentaiai-agentsall-in-onecrmcrm-systememaillinearmcpmessagingnotesnotionofficerustslackslack-alternativestartupstartup-toolstypescriptworkspace
chore: add more logs to stripe webhook (#2444)
dev-rb74ac25782b10
diff --git a/rust/cloud-storage/authentication_service/src/api/webhooks/user/stripe_webhook.rs b/rust/cloud-storage/authentication_service/src/api/webhooks/user/stripe_webhook.rsindex 247820e485..7d60153eec 100644--- a/rust/cloud-storage/authentication_service/src/api/webhooks/user/stripe_webhook.rs+++ b/rust/cloud-storage/authentication_service/src/api/webhooks/user/stripe_webhook.rs@@ -490,11 +490,11 @@ fn track_stripe_subscription(data: SubscriptionTrackingData,) {let Some(value_cents) = data.value_cents else {- tracing::debug!("skipping analytics tracking: missing value_cents");+ tracing::warn!("skipping analytics tracking: missing value_cents");return;};let Some(currency) = data.currency else {- tracing::debug!("skipping analytics tracking: missing currency");+ tracing::warn!("skipping analytics tracking: missing currency");return;};@@ -506,6 +506,14 @@ fn track_stripe_subscription(let subscription_id = subscription_id.to_string();+ tracing::info!(+ value_cents = value_cents,+ currency = %currency,+ is_new = data.is_new,+ status = %data.status,+ "spawning analytics tracking task"+ );+tokio::spawn(async move {let event = SubscriptionEvent {@@ -516,6 +524,13 @@ fn track_stripe_subscription(let user_data = MetaUserData::with_email(&data.email);let event_id = Some(subscription_id.as_str());+ tracing::info!(+ status = %data.status,+ is_new = data.is_new,+ ga_client_id = ?data.ga_client_id,+ "analytics tracking task started"+ );+match (data.status.as_str(), data.is_new) {("active" | "trialing", true) => {if let Some(ref ga_client_id) = data.ga_client_id {