Skip to content

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

perf: add sentry metrics integration (#2002)

Max Deichmannb88809f7e569
diff --git a/web/sentry.server.config.ts b/web/sentry.server.config.ts
index 14cee035f8..be37624bda 100644
--- a/web/sentry.server.config.ts
+++ b/web/sentry.server.config.ts
@@ -28,6 +28,7 @@ if (process.env.NEXT_PUBLIC_SENTRY_DSN)
// Add profiling integration to list of integrations
new ProfilingIntegration(),
new Sentry.Integrations.Prisma({ client: prisma }),
+ Sentry.metrics.metricsAggregatorIntegration(),
],
// filter out passwords from the signup request body
diff --git a/worker/src/app.ts b/worker/src/app.ts
index 84d9af4c55..7b8506e2a3 100644
--- a/worker/src/app.ts
+++ b/worker/src/app.ts
@@ -28,6 +28,7 @@ if (isSentryEnabled) {
// enable Express.js middleware tracing
new Sentry.Integrations.Express({ app }),
nodeProfilingIntegration(),
+ Sentry.metrics.metricsAggregatorIntegration(),
],
// Performance Monitoring
tracesSampleRate: 0.1, // Capture 100% of the transactions