fix: expose branch follower timing attribution gap
This commit is contained in:
@@ -271,6 +271,7 @@ function timingContextRowsForFollower(item: Record<string, unknown>): unknown[][
|
||||
const stored = asOptionalRecord(context.storedTiming);
|
||||
const liveRefresh = asOptionalRecord(context.liveRefresh);
|
||||
const nativeGate = asOptionalRecord(context.nativeGateTiming);
|
||||
const attribution = asOptionalRecord(context.timingAttribution);
|
||||
const rows: unknown[][] = [];
|
||||
if (stored !== null) {
|
||||
rows.push([
|
||||
@@ -309,6 +310,21 @@ function timingContextRowsForFollower(item: Record<string, unknown>): unknown[][
|
||||
nativeGate.argoIncludedInStoredTotal === true ? "argo" : "no",
|
||||
]);
|
||||
}
|
||||
if (attribution !== null) {
|
||||
const detail = [
|
||||
`known=${formatSeconds(numberOrNull(attribution.knownIntervalCoverageSeconds))}`,
|
||||
`unknown=${formatSeconds(numberOrNull(attribution.unknownWallClockSeconds))}`,
|
||||
].join(" ");
|
||||
rows.push([
|
||||
item.id,
|
||||
"attribution",
|
||||
stringOrNull(attribution.source) ?? "-",
|
||||
detail,
|
||||
stringOrNull(attribution.totalStartedAt) ?? "-",
|
||||
stringOrNull(attribution.totalFinishedAt) ?? "-",
|
||||
stringOrNull(attribution.status) ?? "-",
|
||||
]);
|
||||
}
|
||||
return rows;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user