Skip to content

Commit 9c6b603

Browse files
authored
perf(trace): sort records only for updated spans (#10274)
1 parent 1c5dd91 commit 9c6b603

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎dashboard/src/components/shared/TraceDisplayer.vue‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -287,8 +287,8 @@ export default {
287287
});
288288
289289
if (hasUpdate) {
290-
this.events.forEach((event) => {
291-
event.records.sort((a, b) => b.time - a.time);
290+
touched.forEach((spanId) => {
291+
this.eventIndex[spanId].records.sort((a, b) => b.time - a.time);
292292
});
293293
this.events.sort((a, b) => b.first_time - a.first_time);
294294
if (this.events.length > this.maxItems) {

0 commit comments

Comments
 (0)