-
- {filter.length > 0 ? (
-
- ) : null}
-
+
+
+ {filter.length > 1 ? (
+
+ ) : null}
-
-
-
-
{
- return {
- onClick: () => handleCheckTraceDetail(record.id, record.startTime),
- };
- }}
- scroll={{ x: 1100 }}
- onChange={() => {
- getData({ ...query, startTime: range.startTimeMs, endTime: range.endTimeMs });
- }}
- />
+ {tenantId ? (
+ {
+ update({
+ traceId: data.traceId.data.text,
+ startTime: moment(data.traceStartTime.data.text).valueOf(),
+ });
+ setIsShowTraceDetail(true);
+ },
+ },
+ },
+ reqDistribution: {
+ props: {
+ style: {
+ width: '100%',
+ height: '170px',
+ minHeight: 0,
+ },
+ },
+ },
+ }}
+ />
+ ) : null}
- >
+
);
};
diff --git a/shell/app/modules/msp/monitor/trace-insight/services/trace-querier.ts b/shell/app/modules/msp/monitor/trace-insight/services/trace-querier.ts
index 83ba707aa8..3a0c298672 100644
--- a/shell/app/modules/msp/monitor/trace-insight/services/trace-querier.ts
+++ b/shell/app/modules/msp/monitor/trace-insight/services/trace-querier.ts
@@ -12,7 +12,7 @@
// along with this program. If not, see .
import agent from 'agent';
-import { RES_BODY } from 'core/service';
+import { apiCreator } from 'core/service';
export const requestTrace = (data?: MONITOR_TRACE.ITraceRequestBody): { requestId: string } => {
return agent
@@ -83,6 +83,10 @@ export const getSpanDetailContent = ({ span, visible }: { span: any; visible: bo
};
};
-export const getQueryConditions = (): Promise> => {
- return agent.get('/api/msp/apm/trace/conditions').then((response: any) => response.body);
+const apis = {
+ getTraceConditions: {
+ api: '/api/msp/apm/trace/conditions',
+ },
};
+
+export const getTraceConditions = apiCreator<() => MONITOR_TRACE.TraceConditions>(apis.getTraceConditions);
diff --git a/shell/app/modules/msp/services/service-analytics.ts b/shell/app/modules/msp/services/service-analytics.ts
index 89e07cfabf..0457251fe8 100644
--- a/shell/app/modules/msp/services/service-analytics.ts
+++ b/shell/app/modules/msp/services/service-analytics.ts
@@ -18,7 +18,6 @@ const apis = {
api: '/api/apm/topology/services',
},
};
-
export const getServiceList = apiCreator<(p: SERVICE_ANALYTICS.IServiceListQuery) => SERVICE_ANALYTICS.ServiceList>(
apis.getService,
);