Commit de53277
authored
fix(waterfall): Prefer specific root events in trace root lookup (#104050)
This patch fixes two issues:
1. If we look at a trace in the waterfall where the first root span is not
a navigation/pageload span but e.g. a web vital span, we can't look up
the trace's `previous_trace` link. Therefore, we can only show the
disabled "previous trace" button in the UI, although there actually is a
previous trace.
2. For EAP-based traces, it seems like we always took the first
transaction event as the title of the current trace. This sometimes led
to a bit sub optimal titles in my opinion. I noticed we had a more
selective logic for none-EAP events, where we preferred the `pageload`,
`navigation` and `ui.load` events over the "first" event.
To fix both of these issues, this patch ports the none-EAP logic of
selecting a trace root all root events (so also to EAP traces).1 parent 5bcb618 commit de53277
File tree
1 file changed
+23
-17
lines changed- static/app/views/performance/newTraceDetails/traceApi
1 file changed
+23
-17
lines changedLines changed: 23 additions & 17 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
7 | 6 | | |
8 | 7 | | |
9 | 8 | | |
| |||
57 | 56 | | |
58 | 57 | | |
59 | 58 | | |
60 | | - | |
| 59 | + | |
| 60 | + | |
61 | 61 | | |
62 | 62 | | |
63 | 63 | | |
| |||
67 | 67 | | |
68 | 68 | | |
69 | 69 | | |
70 | | - | |
71 | | - | |
72 | | - | |
73 | | - | |
74 | | - | |
| 70 | + | |
| 71 | + | |
75 | 72 | | |
76 | 73 | | |
77 | | - | |
78 | | - | |
| 74 | + | |
| 75 | + | |
79 | 76 | | |
80 | 77 | | |
81 | 78 | | |
| |||
85 | 82 | | |
86 | 83 | | |
87 | 84 | | |
88 | | - | |
89 | | - | |
90 | | - | |
91 | | - | |
92 | | - | |
93 | | - | |
94 | | - | |
| 85 | + | |
95 | 86 | | |
96 | 87 | | |
97 | 88 | | |
| |||
103 | 94 | | |
104 | 95 | | |
105 | 96 | | |
106 | | - | |
| 97 | + | |
107 | 98 | | |
108 | 99 | | |
109 | 100 | | |
| |||
119 | 110 | | |
120 | 111 | | |
121 | 112 | | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
0 commit comments