Skip to content

Commit efbaa6e

Browse files
stlye(sp): Correct spelling of "occurrences" (#98276)
1 parent ccf45d6 commit efbaa6e

File tree

1 file changed

+18
-18
lines changed
  • static/app/views/performance/newTraceDetails/traceModels

1 file changed

+18
-18
lines changed

static/app/views/performance/newTraceDetails/traceModels/traceTree.tsx

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -531,20 +531,20 @@ export class TraceTree extends TraceTreeEventDispatcher {
531531
}
532532
}
533533

534-
let occurences: TraceTree.TraceOccurrence[] = [];
534+
let occurrences: TraceTree.TraceOccurrence[] = [];
535535
if ('performance_issues' in c.value) {
536-
occurences = c.value.performance_issues;
536+
occurrences = c.value.performance_issues;
537537
} else if ('occurrences' in c.value) {
538-
occurences = c.value.occurrences as TraceTree.TraceOccurrence[];
538+
occurrences = c.value.occurrences as TraceTree.TraceOccurrence[];
539539
}
540540

541-
for (const occurence of occurences) {
542-
traceNode.occurrences.add(occurence);
541+
for (const occurrence of occurrences) {
542+
traceNode.occurrences.add(occurrence);
543543

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
545545
// eap-transactions only view, on load
546546
if (closestEAPTransaction) {
547-
closestEAPTransaction.occurrences.add(occurence);
547+
closestEAPTransaction.occurrences.add(occurrence);
548548
}
549549
}
550550

@@ -798,8 +798,8 @@ export class TraceTree extends TraceTreeEventDispatcher {
798798
baseTraceNode.errors.add(error);
799799
}
800800

801-
for (const occurence of additionalTraceNode.occurrences) {
802-
baseTraceNode.occurrences.add(occurence);
801+
for (const occurrence of additionalTraceNode.occurrences) {
802+
baseTraceNode.occurrences.add(occurrence);
803803
}
804804

805805
for (const profile of additionalTraceNode.profiles) {
@@ -984,7 +984,7 @@ export class TraceTree extends TraceTreeEventDispatcher {
984984
let groupMatchCount = 0;
985985

986986
let errors: TraceTree.TraceErrorIssue[] = [];
987-
let occurences: TraceTree.TraceOccurrence[] = [];
987+
let occurrences: TraceTree.TraceOccurrence[] = [];
988988

989989
let start = head.space[0];
990990
let end = head.space[0] + head.space[1];
@@ -1002,7 +1002,7 @@ export class TraceTree extends TraceTreeEventDispatcher {
10021002
end = Math.max(end, tail.space[0] + tail.space[1]);
10031003

10041004
errors = errors.concat(Array.from(tail.errors));
1005-
occurences = occurences.concat(Array.from(tail.occurrences));
1005+
occurrences = occurrences.concat(Array.from(tail.occurrences));
10061006

10071007
groupMatchCount++;
10081008
tail = tail.children[0];
@@ -1057,14 +1057,14 @@ export class TraceTree extends TraceTreeEventDispatcher {
10571057
// Checking the tail node for errors as it is not included in the grouping
10581058
// while loop, but is hidden when the autogrouped node is collapsed
10591059
errors = errors.concat(Array.from(tail.errors));
1060-
occurences = occurences.concat(Array.from(tail.occurrences));
1060+
occurrences = occurrences.concat(Array.from(tail.occurrences));
10611061

10621062
start = Math.min(start, tail.space[0]);
10631063
end = Math.max(end, tail.space[0] + tail.space[1]);
10641064

10651065
autoGroupedNode.space = [start, end - start];
10661066
autoGroupedNode.errors = new Set(errors);
1067-
autoGroupedNode.occurrences = new Set(occurences);
1067+
autoGroupedNode.occurrences = new Set(occurrences);
10681068

10691069
for (const c of tail.children) {
10701070
c.parent = autoGroupedNode;
@@ -1220,8 +1220,8 @@ export class TraceTree extends TraceTreeEventDispatcher {
12201220
autoGroupedNode.errors.add(error);
12211221
}
12221222

1223-
for (const occurence of child.occurrences) {
1224-
autoGroupedNode.occurrences.add(occurence);
1223+
for (const occurrence of child.occurrences) {
1224+
autoGroupedNode.occurrences.add(occurrence);
12251225
}
12261226
}
12271227

@@ -2578,17 +2578,17 @@ function getRelatedPerformanceIssuesFromTransaction(
25782578
return [];
25792579
}
25802580

2581-
const occurences: TraceTree.TraceOccurrence[] = [];
2581+
const occurrences: TraceTree.TraceOccurrence[] = [];
25822582

25832583
for (const perfIssue of node.value.performance_issues) {
25842584
for (const suspect of perfIssue.suspect_spans) {
25852585
if (suspect === span.span_id) {
2586-
occurences.push(perfIssue);
2586+
occurrences.push(perfIssue);
25872587
}
25882588
}
25892589
}
25902590

2591-
return occurences;
2591+
return occurrences;
25922592
}
25932593

25942594
export function getNodeDescriptionPrefix(

0 commit comments

Comments
 (0)