From fedd177b0806441d85508fc12607c70e641243c2 Mon Sep 17 00:00:00 2001 From: Marshall Bowers Date: Wed, 16 Oct 2024 17:09:26 -0400 Subject: [PATCH] collab: Add context to errors syncing billing events to Stripe (#19315) This PR adds context to errors that occur when trying to sync billing events to Stripe. Release Notes: - N/A --- crates/collab/src/api/billing.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/crates/collab/src/api/billing.rs b/crates/collab/src/api/billing.rs index 6db40dd187788db103a961cb0d2fcdefeb47acaa..02282b40c6d91678bf764c8c42200e45c672437d 100644 --- a/crates/collab/src/api/billing.rs +++ b/crates/collab/src/api/billing.rs @@ -748,6 +748,7 @@ pub fn sync_llm_usage_with_stripe_periodically(app: Arc) { loop { sync_with_stripe(&app, &llm_db, &stripe_billing) .await + .context("failed to sync LLM usage to Stripe") .trace_err(); executor.sleep(SYNC_LLM_USAGE_WITH_STRIPE_INTERVAL).await; }