From e4d717132188c15d45dabb0522e186ae8725eaff Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ji=C5=99=C3=AD=20=C4=8Cerm=C3=A1k?= Date: Thu, 5 Dec 2024 11:18:39 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=A7=20Update=20sentry=20intergrations?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- examples/webauthn-default/next.config.ts | 14 -------------- examples/webauthn-upgrade/next.config.ts | 14 -------------- packages/sentry/client.ts | 11 +---------- 3 files changed, 1 insertion(+), 38 deletions(-) diff --git a/examples/webauthn-default/next.config.ts b/examples/webauthn-default/next.config.ts index 6c44494..cebce8c 100755 --- a/examples/webauthn-default/next.config.ts +++ b/examples/webauthn-default/next.config.ts @@ -20,20 +20,6 @@ const nextConfig: NextConfig = { }, transpilePackages: ['@workspace/common'] satisfies Dependency[], - - redirects: async () => [], - - headers: async () => [ - { - source: '/(.*)', - headers: [ - { - key: 'Document-Policy', - value: 'js-profiling', - }, - ], - }, - ], }; // Make sure adding Sentry options is the last code to run before exporting, to diff --git a/examples/webauthn-upgrade/next.config.ts b/examples/webauthn-upgrade/next.config.ts index 6c44494..cebce8c 100755 --- a/examples/webauthn-upgrade/next.config.ts +++ b/examples/webauthn-upgrade/next.config.ts @@ -20,20 +20,6 @@ const nextConfig: NextConfig = { }, transpilePackages: ['@workspace/common'] satisfies Dependency[], - - redirects: async () => [], - - headers: async () => [ - { - source: '/(.*)', - headers: [ - { - key: 'Document-Policy', - value: 'js-profiling', - }, - ], - }, - ], }; // Make sure adding Sentry options is the last code to run before exporting, to diff --git a/packages/sentry/client.ts b/packages/sentry/client.ts index 6eb1b48..d2fbf78 100644 --- a/packages/sentry/client.ts +++ b/packages/sentry/client.ts @@ -2,13 +2,7 @@ // The config you add here will be used whenever a users loads a page in their browser. // https://docs.sentry.io/platforms/javascript/guides/nextjs/ -import { - browserProfilingIntegration, - browserTracingIntegration, - feedbackIntegration, - init, - replayIntegration, -} from '@sentry/nextjs'; +import { browserTracingIntegration, feedbackIntegration, init, replayIntegration } from '@sentry/nextjs'; import './styles/feedback-form.css'; @@ -23,14 +17,11 @@ export function initSentryForClient(dsn: string) { colorScheme: 'system', }), browserTracingIntegration(), - browserProfilingIntegration(), ], // Define how likely traces are sampled. Adjust this value in production, or use tracesSampler for greater control. tracesSampleRate: 0.5, - profilesSampleRate: 0.5, - // Define how likely Replay events are sampled. // This sets the sample rate to be 10%. You may want this to be 100% while // in development and sample at a lower rate in production