Skip to content

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

feat: sentry capture console.error in frontend (#3043)

Max Deichmannb0fea4455688
diff --git a/web/sentry.client.config.ts b/web/sentry.client.config.ts
index 32110e6255..8c5cb37dd9 100644
--- a/web/sentry.client.config.ts
+++ b/web/sentry.client.config.ts
@@ -3,7 +3,13 @@ import * as Sentry from "@sentry/nextjs";
Sentry.init({
dsn: process.env.NEXT_PUBLIC_SENTRY_DSN,
// Replay may only be enabled for the client-side
- integrations: [Sentry.replayIntegration(), Sentry.debugIntegration()],
+ integrations: [
+ Sentry.replayIntegration(),
+ Sentry.debugIntegration(),
+ Sentry.captureConsoleIntegration({
+ levels: ["error"],
+ }),
+ ],
// Set tracesSampleRate to 1.0 to capture 100%
// of transactions for performance monitoring.