From 2d90f325fc3bc60b60ff4f0c21b278f365625a83 Mon Sep 17 00:00:00 2001 From: Victor Navarro Date: Fri, 15 May 2026 16:31:59 +0200 Subject: [PATCH] ci: catch provider errors across all opencode tiers (#27495) --- infra/monitoring.ts | 28 ++++------------------------ 1 file changed, 4 insertions(+), 24 deletions(-) diff --git a/infra/monitoring.ts b/infra/monitoring.ts index bc93e7d3e2..a2b4810993 100644 --- a/infra/monitoring.ts +++ b/infra/monitoring.ts @@ -70,12 +70,11 @@ const modelHttpErrorsQuery = (product: "go" | "zen") => { }).json } -const providerHttpErrorsQuery = (product: "go" | "zen") => { +const providerHttpErrorsQuery = () => { const filters = [ { column: "provider", op: "exists" }, { column: "provider", op: "!=", value: "fireworks-go-glm-5.1" }, { column: "user_agent", op: "contains", value: "opencode" }, - { column: "isGoTier", op: "=", value: product === "go" ? "true" : "false" }, ] const successHttpStatus = calculatedField({ name: "is_success_http_status", @@ -216,29 +215,10 @@ new honeycomb.Trigger("LowModelTpsZen", { ], }) -new honeycomb.Trigger("IncreasedProviderHttpErrorsGo", { - name: "Increased Provider HTTP Errors [Go]", +new honeycomb.Trigger("IncreasedProviderHttpErrors", { + name: "Increased Provider HTTP Errors", description, - queryJson: providerHttpErrorsQuery("go"), - alertType: "on_change", - frequency: 300, - thresholds: [{ op: ">=", value: 0.7, exceededLimit: 1 }], - recipients: [ - { - id: webhookRecipient.id, - notificationDetails: [ - { - variables: [{ name: "type", value: "provider_http_errors" }], - }, - ], - }, - ], -}) - -new honeycomb.Trigger("IncreasedProviderHttpErrorsZen", { - name: "Increased Provider HTTP Errors [Zen]", - description, - queryJson: providerHttpErrorsQuery("zen"), + queryJson: providerHttpErrorsQuery(), alertType: "on_change", frequency: 300, thresholds: [{ op: ">=", value: 0.7, exceededLimit: 1 }],