fix: 收敛 queue commander 默认记录字节噪声
This commit is contained in:
+5
-5
@@ -683,7 +683,7 @@ function summarizeMutationBody(body: JsonRecord): JsonRecord {
|
||||
|
||||
function summarizeQueueStats(record: JsonRecord | null): JsonRecord | null {
|
||||
if (!record) return null;
|
||||
return {
|
||||
return withoutFullRecordBytes({
|
||||
queue: stringValue(record.queue),
|
||||
total: numberValue(record.total),
|
||||
maxVersion: numberValue(record.maxVersion),
|
||||
@@ -693,7 +693,7 @@ function summarizeQueueStats(record: JsonRecord | null): JsonRecord | null {
|
||||
generatedAt: stringValue(record.generatedAt),
|
||||
fullRecordBytes: jsonByteLength(record),
|
||||
valuesPrinted: false,
|
||||
};
|
||||
});
|
||||
}
|
||||
|
||||
function summarizeQueueTaskWithAttempt(record: JsonRecord | null, fallbackTaskId: string): JsonRecord {
|
||||
@@ -728,15 +728,15 @@ function sessionEventDrillDownCommands(kind: "trace" | "output", sessionId: stri
|
||||
}
|
||||
|
||||
function summarizeQueueTaskRecord(record: JsonRecord | null, fallbackTaskId: string): JsonRecord {
|
||||
return compactRecord(record, {
|
||||
return withoutFullRecordBytes(compactRecord(record, {
|
||||
fallback: { id: fallbackTaskId },
|
||||
keys: ["id", "state", "queue", "lane", "title", "priority", "backendProfile", "providerId", "sessionPath", "version", "updatedAt", "cancelledAt", "cancelReason", "readerId", "attentionState", "unread", "active"],
|
||||
});
|
||||
}));
|
||||
}
|
||||
|
||||
function summarizeAttemptRecord(record: JsonRecord | null): JsonRecord | null {
|
||||
if (!record) return null;
|
||||
return compactRecord(record, { keys: ["attemptId", "state", "runId", "commandId", "runnerJobId", "sessionId", "sessionPath"] });
|
||||
return withoutFullRecordBytes(compactRecord(record, { keys: ["attemptId", "state", "runId", "commandId", "runnerJobId", "sessionId", "sessionPath"] }));
|
||||
}
|
||||
|
||||
function summarizeSupervisorRecord(record: JsonRecord | null): JsonRecord | null {
|
||||
|
||||
Reference in New Issue
Block a user