File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
performance/newTraceDetails/traceModels/traceTreeNode Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -93,7 +93,7 @@ export function useAITrace(traceSlug: string): UseAITraceResult {
9393 await Promise . all ( zoomPromises ) ;
9494
9595 // Keep only transactions that include AI spans and the AI spans themselves
96- const flattenedNodes = tree . root . findAllChildren ( node => {
96+ const flattenedNodes = tree . root . findAllChildren < AITraceSpanNode > ( node => {
9797 if (
9898 ! isTransactionNodeEquivalent ( node ) &&
9999 ! isSpanNode ( node ) &&
Original file line number Diff line number Diff line change @@ -233,7 +233,7 @@ export class TransactionNode extends BaseNode<TraceTree.Transaction> {
233233 * Returns the bounds of the added subtree as [start, end] timestamps.
234234 */
235235 appendSpans ( spans : TraceTree . Span [ ] , event : EventTransaction | null ) : [ number , number ] {
236- const txnChildren = this . findAllChildren ( c => isTransactionNode ( c ) ) ;
236+ const txnChildren = this . findAllChildren < TransactionNode > ( c => isTransactionNode ( c ) ) ;
237237
238238 // Clear children of root node as we are recreating the sub tree
239239 this . children = [ ] ;
You can’t perform that action at this time.
0 commit comments