feat(diagnostics): correlate staff operations errors and audit records
This commit is contained in:
1 parent
440ce4e556
commit
a2954e4408
14 files changed
+473
-110
No files matched your search
@@ -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,
|
||||
};
|
||||
}
|
||||
Reference in new issue
Block a user