TP-79757 | ScreenName in RN error events (#12314)
This commit is contained in:
@@ -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({
|
||||
|
||||
Reference in New Issue
Block a user