Fix: Handle internal errors

This commit is contained in:
gpt-engineer-app[bot]
2025-11-03 02:41:01 +00:00
parent 9e8e8719b4
commit 07420a67bf
6 changed files with 24 additions and 19 deletions

View File

@@ -115,12 +115,12 @@ async function logRequestMetadata(metadata: RequestMetadata): Promise<void> {
p_method: metadata.method,
p_status_code: metadata.statusCode,
p_duration_ms: metadata.duration,
p_error_type: metadata.errorType || null,
p_error_message: metadata.errorMessage || null,
p_user_agent: metadata.userAgent || null,
p_client_version: metadata.clientVersion || null,
p_parent_request_id: metadata.parentRequestId || null,
p_trace_id: metadata.traceId || null,
p_error_type: metadata.errorType ?? undefined,
p_error_message: metadata.errorMessage ?? undefined,
p_user_agent: metadata.userAgent ?? undefined,
p_client_version: metadata.clientVersion ?? undefined,
p_parent_request_id: metadata.parentRequestId ?? undefined,
p_trace_id: metadata.traceId ?? undefined,
});
if (error) {