wwf
2 天以前 a430284aa21e3ae1f0d5654e55b2ad2852519cc2
app/components/sentry-initor.tsx
@@ -7,15 +7,16 @@
const SentryInit = ({
  children,
}: { children: React.ReactNode }) => {
}: { children: React.ReactElement }) => {
  useEffect(() => {
    const SENTRY_DSN = document?.body?.getAttribute('data-public-sentry-dsn')
    if (!isDevelopment && SENTRY_DSN) {
      Sentry.init({
        dsn: SENTRY_DSN,
        integrations: [
          Sentry.browserTracingIntegration(),
          Sentry.replayIntegration(),
          new Sentry.BrowserTracing({
          }),
          new Sentry.Replay(),
        ],
        tracesSampleRate: 0.1,
        replaysSessionSampleRate: 0.1,