From a430284aa21e3ae1f0d5654e55b2ad2852519cc2 Mon Sep 17 00:00:00 2001 From: wwf <yearningwang@iqtogether.com> Date: 星期三, 04 六月 2025 15:17:49 +0800 Subject: [PATCH] 初始化 --- app/components/sentry-initor.tsx | 7 ++++--- 1 files changed, 4 insertions(+), 3 deletions(-) diff --git a/app/components/sentry-initor.tsx b/app/components/sentry-initor.tsx index 457a1cf..6bf0abb 100644 --- a/app/components/sentry-initor.tsx +++ b/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, -- Gitblit v1.8.0