From 5dc47830b92e7c960b0bf6214b8c88022faae6c3 Mon Sep 17 00:00:00 2001 From: Shannon Anahata Date: Thu, 17 Jul 2025 12:38:46 -0700 Subject: [PATCH 1/2] fixing session replay responsiveness in code blocks --- docs/platforms/javascript/guides/nextjs/manual-setup.mdx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/platforms/javascript/guides/nextjs/manual-setup.mdx b/docs/platforms/javascript/guides/nextjs/manual-setup.mdx index 78452a4da6a82c..7512f37878d839 100644 --- a/docs/platforms/javascript/guides/nextjs/manual-setup.mdx +++ b/docs/platforms/javascript/guides/nextjs/manual-setup.mdx @@ -127,10 +127,10 @@ 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 Sentry.replayIntegration(), + // ___PRODUCT_OPTION_END___ session-replay // ___PRODUCT_OPTION_START___ user-feedback Sentry.feedbackIntegration({ // Additional SDK configuration goes in here, for example: @@ -138,6 +138,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 +146,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 From cded7ba6bb09adcfb7a6f918dff0b147fdedb88c Mon Sep 17 00:00:00 2001 From: Shannon Anahata Date: Mon, 21 Jul 2025 15:24:05 -0700 Subject: [PATCH 2/2] adding replays for client-side note for both setup docs --- docs/platforms/javascript/guides/nextjs/index.mdx | 4 ++-- docs/platforms/javascript/guides/nextjs/manual-setup.mdx | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) 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 7512f37878d839..fccd01f0959dcc 100644 --- a/docs/platforms/javascript/guides/nextjs/manual-setup.mdx +++ b/docs/platforms/javascript/guides/nextjs/manual-setup.mdx @@ -129,6 +129,7 @@ Sentry.init({ // ___PRODUCT_OPTION_END___ performance 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