TP-79757 | ScreenName in RN error events (#12314)

This commit is contained in:
Prajjaval Verma
2024-09-05 21:49:32 +05:30
committed by GitHub
parent 2559f525e0
commit 81a7245efd
9 changed files with 36 additions and 9 deletions

View File

@@ -32,6 +32,7 @@ import {
import { updateValueByKeyPath } from "../../utilities/MiscUtils";
import { parseValue } from "../../utilities/SerializerUtil";
import { WidgetActionTypes } from "./WidgetActionTypes";
import { getErrorTypeFromStatusCode } from "../../utilities/ErrorUtils";
const WidgetActionHandler = {
handleWidgetAction: (
@@ -273,12 +274,13 @@ const handleErrorData = (
);
const errorEvent: GlobalErrorData = {
reason: `${error.message}, axiosError: ${error.axiosCode}`,
source: widgetMetaData.screenName || "",
statusCode: error.statusCode,
moduleName: AnalyticsModuleNameConstant.GI,
flowName: AnalyticsFlowNameConstant.GI_RN_QUOTE,
methodName: methodName,
globalErrorType: AnalyticsGlobalErrorTypeConstant.GLOBAL_INTERNAL_ERRORS,
isAppDowntimeEvent: true,
globalErrorType: getErrorTypeFromStatusCode(error.statusCode || -1),
isAppDowntimeEvent: false,
};
sendAsGlobalErrorEvent(errorEvent);
setScreenData({