From c23e24293b974ccbffed2e5805a5eb74edab2ed0 Mon Sep 17 00:00:00 2001 From: Qiuxia Fan Date: Thu, 24 Feb 2022 13:27:15 +0800 Subject: [PATCH] fix: update trace detail --- src/store/modules/trace.ts | 1 + src/views/dashboard/related/trace/Filter.vue | 6 ++-- .../dashboard/related/trace/TraceList.vue | 2 +- .../related/trace/components/Detail.vue | 29 ++++++++++++------- 4 files changed, 24 insertions(+), 14 deletions(-) diff --git a/src/store/modules/trace.ts b/src/store/modules/trace.ts index 73342588..6e18179f 100644 --- a/src/store/modules/trace.ts +++ b/src/store/modules/trace.ts @@ -103,6 +103,7 @@ export const traceStore = defineStore({ if (res.data.errors) { return res.data; } + this.getTraceSpans({ traceId: res.data.data.data.traces[0].traceIds[0] }); this.traceList = res.data.data.data.traces.map((d: Trace) => { d.traceIds = d.traceIds.map((id: string) => { return { value: id, label: id }; diff --git a/src/views/dashboard/related/trace/Filter.vue b/src/views/dashboard/related/trace/Filter.vue index d2f10ba9..85af2cb3 100644 --- a/src/views/dashboard/related/trace/Filter.vue +++ b/src/views/dashboard/related/trace/Filter.vue @@ -18,7 +18,7 @@ limitations under the License. --> {{ t("instance") }}: {{ t("endpoint") }}: {{ t("status") }}:
{{ t("start") }}
- {{ - dateFormat(parseInt(traceStore.currentTrace.start)) - }} + + {{ dateFormat(parseInt(traceStore.currentTrace.start)) }} +
{{ t("duration") }}
{{ traceStore.currentTrace.duration }} ms
{{ t("spans") }}
@@ -91,9 +95,10 @@ limitations under the License. -->