🪢 Open source agent evals & observability: Trace, evaluate, and improve LLM applications with one open platform.
TypeScript analyticsautogenevaluationlangchainlarge-language-modelsllama-indexllmllm-evaluationllm-observabilityllmopsmonitoringobservabilityopen-sourceopenaiplaygroundprompt-engineeringprompt-managementself-hostedycombinator
fix: sentry reports only unknown errors (#908)
Max Deichmann6f234884386c
diff --git a/src/pages/api/public/ingestion.ts b/src/pages/api/public/ingestion.tsindex 08616f39bd..09496af275 100644--- a/src/pages/api/public/ingestion.ts+++ b/src/pages/api/public/ingestion.ts@@ -307,6 +307,9 @@ export const handleBatchResult = (error: error.error.message,});} else {+ if (process.env.NEXT_PUBLIC_SENTRY_DSN) {+ Sentry.captureException(error);+ }returnedErrors.push({id: error.id,status: 500,@@ -317,9 +320,6 @@ export const handleBatchResult = (});if (returnedErrors.length > 0) {- if (process.env.NEXT_PUBLIC_SENTRY_DSN) {- Sentry.captureException(returnedErrors);- }console.log("Error processing events", returnedErrors);}