Skip to content

Commit 34f43ff

Browse files
committed
sync
1 parent 49623aa commit 34f43ff

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

  • packages/console/app/src/routes/zen/util

packages/console/app/src/routes/zen/util/handler.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -340,6 +340,13 @@ export async function handler(
340340
"error.message": error.message,
341341
"error.cause": error.cause?.toString(),
342342
})
343+
if (error.message.startsWith("Failed query")) {
344+
try {
345+
logger.metric({
346+
"error.cause2": JSON.stringify(error.cause),
347+
})
348+
} catch (e) {}
349+
}
343350

344351
// Note: both top level "type" and "error.type" fields are used by the @ai-sdk/anthropic client to render the error message.
345352
if (

0 commit comments

Comments
 (0)