zen: error logging
parent
7daea69e13
commit
fbabc97c4c
|
|
@ -330,6 +330,7 @@ export async function handler(
|
|||
logger.metric({
|
||||
"error.type": error.constructor.name,
|
||||
"error.message": error.message,
|
||||
"error.cause": error.cause?.toString(),
|
||||
})
|
||||
|
||||
// Note: both top level "type" and "error.type" fields are used by the @ai-sdk/anthropic client to render the error message.
|
||||
|
|
|
|||
Loading…
Reference in New Issue