danswer/web/sentry.client.config.ts
pablonyx a215ea9143
Performance monitoring (#3725)
* nit

* minimal

* config

* not too big a change

* k

* update

* update web push

* node options

* k

* update config

* attempt fix
2025-01-22 19:54:07 +00:00

13 lines
286 B
TypeScript

import * as Sentry from "@sentry/nextjs";
if (process.env.NEXT_PUBLIC_SENTRY_DSN) {
Sentry.init({
dsn: process.env.NEXT_PUBLIC_SENTRY_DSN,
// Capture unhandled exceptions and performance data
enableTracing: true,
integrations: [],
tracesSampleRate: 0.1,
});
}