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 updateSelectedResponseTab = useCallback((tabKey: string) => {
|
||||
if (tabKey === DEBUGGER_TAB_KEYS.ERROR_TAB) {
|
||||
AnalyticsUtil.logEvent("OPEN_DEBUGGER", {
|
||||
source: "API_PANE",
|
||||
});
|
||||
}
|
||||
dispatch(setApiPaneResponseSelectedTab(tabKey));
|
||||
}, []);
|
||||
|
||||
|
|
|
|||
|
|
@ -7,6 +7,7 @@ import {
|
|||
setCanvasDebuggerSelectedTab,
|
||||
showDebugger,
|
||||
} from "actions/debuggerActions";
|
||||
import AnalyticsUtil from "utils/AnalyticsUtil";
|
||||
import Errors from "./Errors";
|
||||
import Resizer, { ResizerCSS } from "./Resizer";
|
||||
import EntityDeps from "./EntityDependecies";
|
||||
|
|
@ -72,6 +73,11 @@ function DebuggerTabs() {
|
|||
const panelRef: RefObject<HTMLDivElement> = useRef(null);
|
||||
const selectedTab = useSelector(getSelectedCanvasDebuggerTab);
|
||||
const setSelectedTab = (tabKey: string) => {
|
||||
if (tabKey === DEBUGGER_TAB_KEYS.ERROR_TAB) {
|
||||
AnalyticsUtil.logEvent("OPEN_DEBUGGER", {
|
||||
source: "WIDGET_EDITOR",
|
||||
});
|
||||
}
|
||||
dispatch(setCanvasDebuggerSelectedTab(tabKey));
|
||||
};
|
||||
const onClose = () => dispatch(showDebugger(false));
|
||||
|
|
|
|||
|
|
@ -758,6 +758,11 @@ export function EditorJSONtoForm(props: Props) {
|
|||
});
|
||||
|
||||
const onResponseTabSelect = (tabKey: string) => {
|
||||
if (tabKey === DEBUGGER_TAB_KEYS.ERROR_TAB) {
|
||||
AnalyticsUtil.logEvent("OPEN_DEBUGGER", {
|
||||
source: "QUERY_PANE",
|
||||
});
|
||||
}
|
||||
updateActionResponseDisplayFormat({
|
||||
id: currentActionConfig?.id || "",
|
||||
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 { ECMA_VERSION, NodeTypes } from "./constants/ast";
|
||||
import { has, isFinite, isString, memoize, toPath } from "lodash";
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user