From 3d93c6a995b2ad4cfd178829657a1d206eab3b1d Mon Sep 17 00:00:00 2001 From: Maidul Islam Date: Fri, 21 Jul 2023 17:45:27 -0400 Subject: [PATCH] add sentry error to integ --- backend/src/helpers/integration.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/backend/src/helpers/integration.ts b/backend/src/helpers/integration.ts index 6bed537b8..552e91859 100644 --- a/backend/src/helpers/integration.ts +++ b/backend/src/helpers/integration.ts @@ -9,6 +9,7 @@ import { INTEGRATION_VERCEL, } from "../variables"; import { UnauthorizedRequestError } from "../utils/errors"; +import * as Sentry from "@sentry/node"; interface Update { workspace: string; @@ -158,6 +159,7 @@ export const syncIntegrationsHelper = async ({ }); } } catch (err) { + Sentry.captureException(err); console.log(`syncIntegrationsHelper: failed with [workspaceId=${workspaceId}] [environment=${environment}]`, err) // eslint-disable-line no-use-before-define throw err }