sentry.js 329 B

12345678910111213
  1. import * as Sentry from "@sentry/react";
  2. import { BrowserTracing } from "@sentry/tracing";
  3. import { SENTRY_DSN, SENTRY_ENVIRONMENT } from "./utils/settings";
  4. if (SENTRY_DSN) {
  5. Sentry.init({
  6. dsn: SENTRY_DSN,
  7. integrations: [new BrowserTracing()],
  8. environment: SENTRY_ENVIRONMENT,
  9. tracesSampleRate: 1.0,
  10. });
  11. }