diff --git a/app/client/src/sagas/EvaluationsSaga.ts b/app/client/src/sagas/EvaluationsSaga.ts index 7aef086af0..ef782826ee 100644 --- a/app/client/src/sagas/EvaluationsSaga.ts +++ b/app/client/src/sagas/EvaluationsSaga.ts @@ -40,6 +40,7 @@ import { } from "constants/messages"; import AppsmithConsole from "utils/AppsmithConsole"; import LOG_TYPE from "entities/AppsmithConsole/logtype"; +import AnalyticsUtil from "utils/AnalyticsUtil"; let widgetTypeConfigMap: WidgetTypeConfigMap; @@ -66,6 +67,13 @@ const evalErrorHandler = (errors: EvalError[]) => { // Level is warning because it could be a user error level: Sentry.Severity.Warning, }); + // Log an analytics event for cyclical dep errors + AnalyticsUtil.logEvent("CYCLICAL_DEPENDENCY_ERROR", { + node, + entityType, + // Level is warning because it could be a user error + level: Sentry.Severity.Warning, + }); } break; diff --git a/app/client/src/utils/AnalyticsUtil.tsx b/app/client/src/utils/AnalyticsUtil.tsx index d23b1505bd..534208b675 100644 --- a/app/client/src/utils/AnalyticsUtil.tsx +++ b/app/client/src/utils/AnalyticsUtil.tsx @@ -119,7 +119,8 @@ export type EventName = | "DEBUGGER_TAB_SWITCH" | "DEBUGGER_ENTITY_NAVIGATION" | "GSHEET_AUTH_INIT" - | "GSHEET_AUTH_COMPLETE"; + | "GSHEET_AUTH_COMPLETE" + | "CYCLICAL_DEPENDENCY_ERROR"; function getApplicationId(location: Location) { const pathSplit = location.pathname.split("/");