fix: distinguish source preparation from retry failures
This commit is contained in:
@@ -117,7 +117,12 @@ export function traceDisplayRows(trace: Record<string, unknown> = {}, events: Tr
|
||||
}
|
||||
|
||||
function isSemanticFailureRetryEvent(event: TraceEvent): boolean {
|
||||
return Boolean(nonEmptyString(event.failureDomain) && nonEmptyString(event.retryPhase));
|
||||
if (!nonEmptyString(event.failureDomain)) return false;
|
||||
const phase = normalizedRetryPhase(event.retryPhase);
|
||||
return phase.includes("scheduled")
|
||||
|| phase.includes("exhausted")
|
||||
|| phase.includes("recovered")
|
||||
|| (phase.includes("retry") && phase.includes("started"));
|
||||
}
|
||||
|
||||
function traceSemanticFailureRetryRow(event: TraceEvent, options: ResolvedTraceDisplayRowsOptions): TraceEventRow {
|
||||
|
||||
Reference in New Issue
Block a user