+
+ Trace Graph component ID is {params.id}{" "}
+
+
diff --git a/frontend/src/modules/Traces/TraceList.tsx b/frontend/src/modules/Traces/TraceList.tsx
index c75d872022..78aa97e6dd 100644
--- a/frontend/src/modules/Traces/TraceList.tsx
+++ b/frontend/src/modules/Traces/TraceList.tsx
@@ -2,6 +2,7 @@ import React, { useEffect } from "react";
import { connect } from "react-redux";
import { NavLink } from "react-router-dom";
import { Space, Table } from "antd";
+import ROUTES from "Src/constants/routes";
import { traceResponseNew, fetchTraces, pushDStree } from "../../store/actions";
import { StoreState } from "../../store/reducers";
@@ -73,7 +74,7 @@ const _TraceList = (props: TraceListProps) => {
dataIndex: "traceid",
key: "traceid",
render: (text: string) => (
-
{text.slice(-16)}
+
{text.slice(-16)}
),
//only last 16 chars have traceID, druid makes it 32 by adding zeros
},
diff --git a/frontend/src/store/actions/traces.ts b/frontend/src/store/actions/traces.ts
index 2f8f5ae2d1..88721e56d9 100644
--- a/frontend/src/store/actions/traces.ts
+++ b/frontend/src/store/actions/traces.ts
@@ -4,6 +4,7 @@ import api, { apiV1 } from "../../api";
import { Dispatch } from "redux";
import { GlobalTime } from "./global";
import { toUTCEpoch } from "../../utils/timeUtils";
+import ROUTES from "Src/constants/routes";
// PNOTE
// define trace interface - what it should return
@@ -141,7 +142,7 @@ export const fetchTraces = (globalTime: GlobalTime, filter_params: string) => {
export const fetchTraceItem = (traceID: string) => {
return async (dispatch: Dispatch) => {
- let request_string = "/traces/" + traceID;
+ let request_string = ROUTES.TRACES + "/" + traceID;
const response = await api.get
(
apiV1 + request_string,
);
diff --git a/frontend/src/utils/app.ts b/frontend/src/utils/app.ts
index 21ae10c624..a84159006b 100644
--- a/frontend/src/utils/app.ts
+++ b/frontend/src/utils/app.ts
@@ -1,3 +1,5 @@
+import { SKIP_ONBOARDING } from "Src/constants/onboarding";
+
export const isOnboardingSkipped = () => {
- return localStorage.getItem("skip_onboarding") === "true";
+ return localStorage.getItem(SKIP_ONBOARDING) === "true";
};