Skip to content

Commit 8313800

Browse files
authored
fix(webapp): don't override spans from ancestors unless the span is partial (#2532)
1 parent 28f8cee commit 8313800

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

apps/webapp/app/v3/eventRepository.server.ts

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2001,12 +2001,16 @@ function getAncestorOverrides({
20012001
spansById: Map<string, PreparedEvent>;
20022002
span: PreparedEvent;
20032003
}): AncestorOverrides | undefined {
2004-
const overrides: AncestorOverrides = {};
2005-
20062004
if (span.level !== "TRACE") {
20072005
return;
20082006
}
20092007

2008+
if (!span.isPartial) {
2009+
return;
2010+
}
2011+
2012+
const overrides: AncestorOverrides = {};
2013+
20102014
const cancelledAncestor = findCancelledAncestor(spansById, span, span.spanId);
20112015

20122016
if (cancelledAncestor) {

0 commit comments

Comments
 (0)