sentry.client.config.ts 349 B

1234567891011121314151617
  1. import * as Sentry from "@sentry/nextjs";
  2. import { stripUuids } from "@/lib/sentry-utils";
  3. const dsn = process.env.NEXT_PUBLIC_SENTRY_DSN;
  4. if (dsn) {
  5. Sentry.init({
  6. dsn,
  7. tracesSampleRate: 0.1,
  8. beforeSend(event) {
  9. return stripUuids(event);
  10. },
  11. beforeSendTransaction(event) {
  12. return stripUuids(event);
  13. },
  14. });
  15. }