Skip to content

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

fix: capture worker sentry exceptions (#2505)

Max Deichmannad7f27363815
diff --git a/worker/src/api/index.ts b/worker/src/api/index.ts
index 4761b71b12..f3379a59ab 100644
--- a/worker/src/api/index.ts
+++ b/worker/src/api/index.ts
@@ -2,6 +2,7 @@ import { Queue } from "bullmq";
import { randomUUID } from "crypto";
import express from "express";
import basicAuth from "express-basic-auth";
+import * as Sentry from "@sentry/node";
import {
EventBodySchema,
@@ -108,6 +109,7 @@ router
return res.status(400);
} catch (e) {
logger.error(e, "Error processing events");
+ Sentry.captureException(e);
return res.status(500).json({
status: "error",
});