@@ -531,20 +531,20 @@ export class TraceTree extends TraceTreeEventDispatcher {
531
531
}
532
532
}
533
533
534
- let occurences : TraceTree . TraceOccurrence [ ] = [ ] ;
534
+ let occurrences : TraceTree . TraceOccurrence [ ] = [ ] ;
535
535
if ( 'performance_issues' in c . value ) {
536
- occurences = c . value . performance_issues ;
536
+ occurrences = c . value . performance_issues ;
537
537
} else if ( 'occurrences' in c . value ) {
538
- occurences = c . value . occurrences as TraceTree . TraceOccurrence [ ] ;
538
+ occurrences = c . value . occurrences as TraceTree . TraceOccurrence [ ] ;
539
539
}
540
540
541
- for ( const occurence of occurences ) {
542
- traceNode . occurrences . add ( occurence ) ;
541
+ for ( const occurrence of occurrences ) {
542
+ traceNode . occurrences . add ( occurrence ) ;
543
543
544
- // Propagate occurences to the closest EAP transaction for visibility in the initially collapsed
544
+ // Propagate occurrences to the closest EAP transaction for visibility in the initially collapsed
545
545
// eap-transactions only view, on load
546
546
if ( closestEAPTransaction ) {
547
- closestEAPTransaction . occurrences . add ( occurence ) ;
547
+ closestEAPTransaction . occurrences . add ( occurrence ) ;
548
548
}
549
549
}
550
550
@@ -798,8 +798,8 @@ export class TraceTree extends TraceTreeEventDispatcher {
798
798
baseTraceNode . errors . add ( error ) ;
799
799
}
800
800
801
- for ( const occurence of additionalTraceNode . occurrences ) {
802
- baseTraceNode . occurrences . add ( occurence ) ;
801
+ for ( const occurrence of additionalTraceNode . occurrences ) {
802
+ baseTraceNode . occurrences . add ( occurrence ) ;
803
803
}
804
804
805
805
for ( const profile of additionalTraceNode . profiles ) {
@@ -984,7 +984,7 @@ export class TraceTree extends TraceTreeEventDispatcher {
984
984
let groupMatchCount = 0 ;
985
985
986
986
let errors : TraceTree . TraceErrorIssue [ ] = [ ] ;
987
- let occurences : TraceTree . TraceOccurrence [ ] = [ ] ;
987
+ let occurrences : TraceTree . TraceOccurrence [ ] = [ ] ;
988
988
989
989
let start = head . space [ 0 ] ;
990
990
let end = head . space [ 0 ] + head . space [ 1 ] ;
@@ -1002,7 +1002,7 @@ export class TraceTree extends TraceTreeEventDispatcher {
1002
1002
end = Math . max ( end , tail . space [ 0 ] + tail . space [ 1 ] ) ;
1003
1003
1004
1004
errors = errors . concat ( Array . from ( tail . errors ) ) ;
1005
- occurences = occurences . concat ( Array . from ( tail . occurrences ) ) ;
1005
+ occurrences = occurrences . concat ( Array . from ( tail . occurrences ) ) ;
1006
1006
1007
1007
groupMatchCount ++ ;
1008
1008
tail = tail . children [ 0 ] ;
@@ -1057,14 +1057,14 @@ export class TraceTree extends TraceTreeEventDispatcher {
1057
1057
// Checking the tail node for errors as it is not included in the grouping
1058
1058
// while loop, but is hidden when the autogrouped node is collapsed
1059
1059
errors = errors . concat ( Array . from ( tail . errors ) ) ;
1060
- occurences = occurences . concat ( Array . from ( tail . occurrences ) ) ;
1060
+ occurrences = occurrences . concat ( Array . from ( tail . occurrences ) ) ;
1061
1061
1062
1062
start = Math . min ( start , tail . space [ 0 ] ) ;
1063
1063
end = Math . max ( end , tail . space [ 0 ] + tail . space [ 1 ] ) ;
1064
1064
1065
1065
autoGroupedNode . space = [ start , end - start ] ;
1066
1066
autoGroupedNode . errors = new Set ( errors ) ;
1067
- autoGroupedNode . occurrences = new Set ( occurences ) ;
1067
+ autoGroupedNode . occurrences = new Set ( occurrences ) ;
1068
1068
1069
1069
for ( const c of tail . children ) {
1070
1070
c . parent = autoGroupedNode ;
@@ -1220,8 +1220,8 @@ export class TraceTree extends TraceTreeEventDispatcher {
1220
1220
autoGroupedNode . errors . add ( error ) ;
1221
1221
}
1222
1222
1223
- for ( const occurence of child . occurrences ) {
1224
- autoGroupedNode . occurrences . add ( occurence ) ;
1223
+ for ( const occurrence of child . occurrences ) {
1224
+ autoGroupedNode . occurrences . add ( occurrence ) ;
1225
1225
}
1226
1226
}
1227
1227
@@ -2578,17 +2578,17 @@ function getRelatedPerformanceIssuesFromTransaction(
2578
2578
return [ ] ;
2579
2579
}
2580
2580
2581
- const occurences : TraceTree . TraceOccurrence [ ] = [ ] ;
2581
+ const occurrences : TraceTree . TraceOccurrence [ ] = [ ] ;
2582
2582
2583
2583
for ( const perfIssue of node . value . performance_issues ) {
2584
2584
for ( const suspect of perfIssue . suspect_spans ) {
2585
2585
if ( suspect === span . span_id ) {
2586
- occurences . push ( perfIssue ) ;
2586
+ occurrences . push ( perfIssue ) ;
2587
2587
}
2588
2588
}
2589
2589
}
2590
2590
2591
- return occurences ;
2591
+ return occurrences ;
2592
2592
}
2593
2593
2594
2594
export function getNodeDescriptionPrefix (
0 commit comments