fix: Instrumentation for execution errors (#18093)
* fix: Instrumentation for execution errors * added widget editor error event
This commit is contained in:
parent
e64f87e033
commit
2184eb8acd
|
|
@ -387,6 +387,11 @@ function ApiResponseView(props: Props) {
|
||||||
|
|
||||||
const selectedResponseTab = useSelector(getApiPaneResponseSelectedTab);
|
const selectedResponseTab = useSelector(getApiPaneResponseSelectedTab);
|
||||||
const updateSelectedResponseTab = useCallback((tabKey: string) => {
|
const updateSelectedResponseTab = useCallback((tabKey: string) => {
|
||||||
|
if (tabKey === DEBUGGER_TAB_KEYS.ERROR_TAB) {
|
||||||
|
AnalyticsUtil.logEvent("OPEN_DEBUGGER", {
|
||||||
|
source: "API_PANE",
|
||||||
|
});
|
||||||
|
}
|
||||||
dispatch(setApiPaneResponseSelectedTab(tabKey));
|
dispatch(setApiPaneResponseSelectedTab(tabKey));
|
||||||
}, []);
|
}, []);
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -7,6 +7,7 @@ import {
|
||||||
setCanvasDebuggerSelectedTab,
|
setCanvasDebuggerSelectedTab,
|
||||||
showDebugger,
|
showDebugger,
|
||||||
} from "actions/debuggerActions";
|
} from "actions/debuggerActions";
|
||||||
|
import AnalyticsUtil from "utils/AnalyticsUtil";
|
||||||
import Errors from "./Errors";
|
import Errors from "./Errors";
|
||||||
import Resizer, { ResizerCSS } from "./Resizer";
|
import Resizer, { ResizerCSS } from "./Resizer";
|
||||||
import EntityDeps from "./EntityDependecies";
|
import EntityDeps from "./EntityDependecies";
|
||||||
|
|
@ -72,6 +73,11 @@ function DebuggerTabs() {
|
||||||
const panelRef: RefObject<HTMLDivElement> = useRef(null);
|
const panelRef: RefObject<HTMLDivElement> = useRef(null);
|
||||||
const selectedTab = useSelector(getSelectedCanvasDebuggerTab);
|
const selectedTab = useSelector(getSelectedCanvasDebuggerTab);
|
||||||
const setSelectedTab = (tabKey: string) => {
|
const setSelectedTab = (tabKey: string) => {
|
||||||
|
if (tabKey === DEBUGGER_TAB_KEYS.ERROR_TAB) {
|
||||||
|
AnalyticsUtil.logEvent("OPEN_DEBUGGER", {
|
||||||
|
source: "WIDGET_EDITOR",
|
||||||
|
});
|
||||||
|
}
|
||||||
dispatch(setCanvasDebuggerSelectedTab(tabKey));
|
dispatch(setCanvasDebuggerSelectedTab(tabKey));
|
||||||
};
|
};
|
||||||
const onClose = () => dispatch(showDebugger(false));
|
const onClose = () => dispatch(showDebugger(false));
|
||||||
|
|
|
||||||
|
|
@ -758,6 +758,11 @@ export function EditorJSONtoForm(props: Props) {
|
||||||
});
|
});
|
||||||
|
|
||||||
const onResponseTabSelect = (tabKey: string) => {
|
const onResponseTabSelect = (tabKey: string) => {
|
||||||
|
if (tabKey === DEBUGGER_TAB_KEYS.ERROR_TAB) {
|
||||||
|
AnalyticsUtil.logEvent("OPEN_DEBUGGER", {
|
||||||
|
source: "QUERY_PANE",
|
||||||
|
});
|
||||||
|
}
|
||||||
updateActionResponseDisplayFormat({
|
updateActionResponseDisplayFormat({
|
||||||
id: currentActionConfig?.id || "",
|
id: currentActionConfig?.id || "",
|
||||||
field: "responseDisplayFormat",
|
field: "responseDisplayFormat",
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
import acorn, { parse, Node, SourceLocation, Options, Comment } from "acorn";
|
import { parse, Node, SourceLocation, Options, Comment } from "acorn";
|
||||||
import { ancestor, simple } from "acorn-walk";
|
import { ancestor, simple } from "acorn-walk";
|
||||||
import { ECMA_VERSION, NodeTypes } from "./constants/ast";
|
import { ECMA_VERSION, NodeTypes } from "./constants/ast";
|
||||||
import { has, isFinite, isString, memoize, toPath } from "lodash";
|
import { has, isFinite, isString, memoize, toPath } from "lodash";
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user