We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 49623aa commit 34f43ffCopy full SHA for 34f43ff
1 file changed
packages/console/app/src/routes/zen/util/handler.ts
@@ -340,6 +340,13 @@ export async function handler(
340
"error.message": error.message,
341
"error.cause": error.cause?.toString(),
342
})
343
+ if (error.message.startsWith("Failed query")) {
344
+ try {
345
+ logger.metric({
346
+ "error.cause2": JSON.stringify(error.cause),
347
+ })
348
+ } catch (e) {}
349
+ }
350
351
// Note: both top level "type" and "error.type" fields are used by the @ai-sdk/anthropic client to render the error message.
352
if (
0 commit comments