fix: view spans details and task logs (#76)

This commit is contained in:
Fine0830
2022-05-04 14:28:27 +08:00
committed by GitHub
parent 4c1884d552
commit 7d1bb43adb
5 changed files with 30 additions and 10 deletions

View File

@@ -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;