🪢 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: capture ingestion errors in sentry (#899)
Max Deichmann16e60f74da91
diff --git a/src/pages/api/public/ingestion.ts b/src/pages/api/public/ingestion.tsindex 2532234c00..08616f39bd 100644--- a/src/pages/api/public/ingestion.ts+++ b/src/pages/api/public/ingestion.ts@@ -25,6 +25,7 @@ import { ScoreProcessor } from "../../../server/api/services/EventProcessor";import { isNotNullOrUndefined } from "@/src/utils/types";import { telemetry } from "@/src/features/telemetry";import { jsonSchema } from "@/src/utils/zod";+import * as Sentry from "@sentry/nextjs";export const config = {api: {@@ -316,6 +317,9 @@ export const handleBatchResult = (});if (returnedErrors.length > 0) {+ if (process.env.NEXT_PUBLIC_SENTRY_DSN) {+ Sentry.captureException(returnedErrors);+ }console.log("Error processing events", returnedErrors);}