Skip to content

🪢 Open source agent evals & observability: Trace, evaluate, and improve LLM applications with one open platform.

fix: send error only in custom sentry alert (#919)

Max Deichmanne43568a3d20d
diff --git a/src/pages/api/public/ingestion.ts b/src/pages/api/public/ingestion.ts
index 09496af275..5294b18140 100644
--- a/src/pages/api/public/ingestion.ts
+++ b/src/pages/api/public/ingestion.ts
@@ -308,7 +308,7 @@ export const handleBatchResult = (
});
} else {
if (process.env.NEXT_PUBLIC_SENTRY_DSN) {
- Sentry.captureException(error);
+ Sentry.captureException(error.error);
}
returnedErrors.push({
id: error.id,