From d36a0d63582d4c8cf50d8c7e87a1aa535d27991d Mon Sep 17 00:00:00 2001 From: Qiuxia Fan Date: Wed, 4 May 2022 14:14:43 +0800 Subject: [PATCH] fix logs --- src/store/modules/profile.ts | 8 +++++++- .../dashboard/related/components/LogTable/LogService.vue | 4 ++-- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/src/store/modules/profile.ts b/src/store/modules/profile.ts index 9209e395..6dc8301a 100644 --- a/src/store/modules/profile.ts +++ b/src/store/modules/profile.ts @@ -161,7 +161,13 @@ export const profileStore = defineStore({ this.analyzeTrees = []; return res.data; } - this.segmentSpans = segment.spans; + this.segmentSpans = segment.spans.map((d: SegmentSpan) => { + return { + ...d, + segmentId: this.currentSegment.segmentId, + traceId: this.currentSegment.traceIds[0], + }; + }); if (!(segment.spans && segment.spans.length)) { this.analyzeTrees = []; return res.data; diff --git a/src/views/dashboard/related/components/LogTable/LogService.vue b/src/views/dashboard/related/components/LogTable/LogService.vue index c91b1efe..4b40ff80 100644 --- a/src/views/dashboard/related/components/LogTable/LogService.vue +++ b/src/views/dashboard/related/components/LogTable/LogService.vue @@ -22,12 +22,12 @@ limitations under the License. --> {{ tags }} - {{ data[item.label] }} - + --> {{ data[item.label] }}