Show external service traces in admin player view
Build and publish frontend / publish (push) Successful in 45s
Build and publish frontend / publish (push) Successful in 45s
This commit is contained in:
@@ -180,6 +180,11 @@
|
||||
for (const [index, entry] of entries.entries()) {
|
||||
const status = entry.data.execution_mode || entry.data.metadata?.decision || entry.data.outcome || 'status okänd';
|
||||
adminJson(`${index + 1}. ${entry.kind} · ${status} · ${entry.at} · ${entry.order}`, entry.data);
|
||||
if (entry.data.external_call && Object.keys(entry.data.external_call).length > 0) {
|
||||
const call = entry.data.external_call;
|
||||
const outcome = call.error || `HTTP ${call.response_status ?? 'okänt'}`;
|
||||
adminJson(`Externt tjänsteanrop · ${call.service || 'okänd tjänst'} · ${outcome} · ${call.duration_ms ?? '?'} ms`, call);
|
||||
}
|
||||
}
|
||||
}
|
||||
async function loadAdminPrompts() {
|
||||
|
||||
Reference in New Issue
Block a user