sync
parent
49623aa519
commit
34f43fff89
|
|
@ -340,6 +340,13 @@ export async function handler(
|
||||||
"error.message": error.message,
|
"error.message": error.message,
|
||||||
"error.cause": error.cause?.toString(),
|
"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.
|
// Note: both top level "type" and "error.type" fields are used by the @ai-sdk/anthropic client to render the error message.
|
||||||
if (
|
if (
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue