pull/12823/head
Frank 2026-03-24 01:00:17 -04:00
parent 49623aa519
commit 34f43fff89
1 changed files with 7 additions and 0 deletions

View File

@ -340,6 +340,13 @@ export async function handler(
"error.message": error.message,
"error.cause": error.cause?.toString(),
})
if (error.message.startsWith("Failed query")) {
try {
logger.metric({
"error.cause2": JSON.stringify(error.cause),
})
} catch (e) {}
}
// Note: both top level "type" and "error.type" fields are used by the @ai-sdk/anthropic client to render the error message.
if (