Skip to content

Commit d40da9e

Browse files
committed
fix(webapp): exclude ANCESTOR_OVERRIDE rows from trace export
1 parent d02eef1 commit d40da9e

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

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

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2040,6 +2040,11 @@ export class ClickhouseEventRepository implements IEventRepository {
20402040
{ spanEventKind: "SPAN_EVENT", internalPrefix: "trigger.dev/" }
20412041
);
20422042

2043+
// ANCESTOR_OVERRIDE rows duplicate a descendant's error onto an ancestor span
2044+
// to colour the tree; they carry no event of their own. The tree path drops
2045+
// them, so the export does too (otherwise the same error shows up twice).
2046+
queryBuilder.where("kind != {ancestorKind: String}", { ancestorKind: "ANCESTOR_OVERRIDE" });
2047+
20432048
queryBuilder.orderBy("start_time ASC");
20442049
// Deliberately no LIMIT: streaming never materialises the result set, so the
20452050
// detailed-summary memory cap doesn't apply to the export.

0 commit comments

Comments
 (0)