diff --git a/docs/platforms/javascript/guides/nextjs/index.mdx b/docs/platforms/javascript/guides/nextjs/index.mdx index bbe21a4901c0df..7e01df44ba11bc 100644 --- a/docs/platforms/javascript/guides/nextjs/index.mdx +++ b/docs/platforms/javascript/guides/nextjs/index.mdx @@ -69,6 +69,7 @@ Sentry.init({ Sentry.browserTracingIntegration(), // ___PRODUCT_OPTION_END___ performance // ___PRODUCT_OPTION_START___ session-replay + // Replay may only be enabled for the client-side Sentry.replayIntegration(), // ___PRODUCT_OPTION_END___ session-replay // ___PRODUCT_OPTION_START___ user-feedback @@ -93,8 +94,7 @@ Sentry.init({ tracesSampleRate: 1.0, // ___PRODUCT_OPTION_END___ performance // ___PRODUCT_OPTION_START___ session-replay - - // Capture Replay for 10% of all sessions, + // Capture Replay for 10% of all // plus for 100% of sessions with an error // Learn more at // https://docs.sentry.io/platforms/javascript/session-replay/configuration/#general-integration-configuration diff --git a/docs/platforms/javascript/guides/nextjs/manual-setup.mdx b/docs/platforms/javascript/guides/nextjs/manual-setup.mdx index 78452a4da6a82c..fccd01f0959dcc 100644 --- a/docs/platforms/javascript/guides/nextjs/manual-setup.mdx +++ b/docs/platforms/javascript/guides/nextjs/manual-setup.mdx @@ -127,10 +127,11 @@ Sentry.init({ // https://docs.sentry.io/platforms/javascript/configuration/options/#traces-sample-rate tracesSampleRate: 1.0, // ___PRODUCT_OPTION_END___ performance - // ___PRODUCT_OPTION_START___ session-replay - // Replay may only be enabled for the client-side integrations: [ + // ___PRODUCT_OPTION_START___ session-replay + // Replay may only be enabled for the client-side Sentry.replayIntegration(), + // ___PRODUCT_OPTION_END___ session-replay // ___PRODUCT_OPTION_START___ user-feedback Sentry.feedbackIntegration({ // Additional SDK configuration goes in here, for example: @@ -138,6 +139,7 @@ Sentry.init({ }), // ___PRODUCT_OPTION_END___ user-feedback ], + // ___PRODUCT_OPTION_START___ session-replay // Capture Replay for 10% of all sessions, // plus for 100% of sessions with an error @@ -145,7 +147,6 @@ Sentry.init({ // https://docs.sentry.io/platforms/javascript/session-replay/configuration/#general-integration-configuration replaysSessionSampleRate: 0.1, replaysOnErrorSampleRate: 1.0, - // ___PRODUCT_OPTION_END___ session-replay // ___PRODUCT_OPTION_START___ logs