Commit ff6eb1e 1 parent 20bfba9 commit ff6eb1e Copy full SHA for ff6eb1e
File tree 3 files changed +14
-6
lines changed
3 files changed +14
-6
lines changed Original file line number Diff line number Diff line change @@ -108,6 +108,14 @@ public function getNestedTraceData(): array
108
108
return $ this ->nestedTraceData ;
109
109
}
110
110
111
+ /**
112
+ * @return array<int,self>
113
+ */
114
+ public function getAcceptedNestedTraceData (): array
115
+ {
116
+ return array_filter ($ this ->nestedTraceData , fn (self $ traceData ) => !$ traceData ->isRefused ());
117
+ }
118
+
111
119
public function addNestedTraceData (self $ traceData ): void
112
120
{
113
121
$ this ->nestedTraceData [] = $ traceData ;
@@ -141,8 +149,7 @@ public function getPossibleTargetTypesHtml(): string
141
149
if ($ this ->possibleTargetTypes === null ) {
142
150
return "__unknown__ " ;
143
151
}
144
- return TypeUtil::getTypeStringHtml ($ this ->possibleTargetTypes );
145
- ;
152
+ return TypeUtil::getTypeStringHtml ($ this ->possibleTargetTypes );;
146
153
}
147
154
148
155
public function getSelectedTargetType (): ?Type
Original file line number Diff line number Diff line change @@ -104,10 +104,7 @@ public function transform(
104
104
$ caller ['type ' ] ?? null
105
105
);
106
106
107
- // if we are the root transformer, add the trace data to the
108
- // context, and collect it
109
107
$ context = $ context ->with ($ traceData );
110
- $ this ->dataCollector ->collectTraceData ($ traceData );
111
108
}
112
109
113
110
try {
@@ -118,6 +115,10 @@ public function transform(
118
115
119
116
$ traceData ->finalize ($ time , $ result );
120
117
118
+ if (!$ parentTraceData ) {
119
+ $ this ->dataCollector ->collectTraceData ($ traceData );
120
+ }
121
+
121
122
return $ result ;
122
123
} catch (RefuseToTransformException $ e ) {
123
124
$ traceData ->refusedToTransform ();
Original file line number Diff line number Diff line change 231
231
</td >
232
232
</tr >
233
233
234
- {% for child in tracedata .nestedTraceData %}
234
+ {% for child in tracedata .acceptedNestedTraceData %}
235
235
{{ _self.render_row (child , depth + 1 ) }}
236
236
{% endfor %}
237
237
{% endmacro %}
You can’t perform that action at this time.
0 commit comments