danswer/web/sentry.server.config.ts

19 lines
566 B
TypeScript
Raw Permalink Normal View History

import * as Sentry from "@sentry/nextjs";
if (process.env.NEXT_PUBLIC_SENTRY_DSN) {
Sentry.init({
dsn: process.env.NEXT_PUBLIC_SENTRY_DSN,
2024-10-26 12:06:46 -07:00
// Only capture unhandled exceptions and errors
tracesSampleRate: 0,
enableTracing: false,
// Disable performance monitoring and only capture errors
profilesSampleRate: 0,
// Note: if you want to override the automatic release value, do not set a
// `release` value here - use the environment variable `SENTRY_RELEASE`, so
// that it will also get attached to your source maps
});
}