feat(diagnostics): correlate staff operations errors and audit records

This commit is contained in:
2026-09-11 00:34:49 +02:00
parent 440ce4e556
commit a2954e4408
14 changed files with 473 additions and 110 deletions
+6
View File
@@ -69,5 +69,11 @@ export function summarizeErrorGroup(events: CmsErrorRecord[]) {
releases: [...releases.values()],
latest,
operationLink: latest ? errorOperationLink(latest) : null,
auditLink:
latest?.source === "server" &&
typeof latest.context.operationId === "string" &&
/^[a-zA-Z0-9-]{1,100}$/.test(latest.context.operationId)
? `/admin/logs/audit?search=${encodeURIComponent(latest.context.operationId)}`
: null,
};
}