From 6c0bea93b0c4b18b509f0319f9ecb0d13aaf56f3 Mon Sep 17 00:00:00 2001 From: KyleTryon Date: Mon, 24 Nov 2025 10:58:33 -0500 Subject: [PATCH] Update Sentry SDK integration instructions for frontend: generalize package manager reference and remove unnecessary whitespace. --- .../integrate-frontend/initialize-sentry-sdk.mdx | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/docs/product/sentry-basics/integrate-frontend/initialize-sentry-sdk.mdx b/docs/product/sentry-basics/integrate-frontend/initialize-sentry-sdk.mdx index 639c70dc6e9f7..51ffb4d11a552 100644 --- a/docs/product/sentry-basics/integrate-frontend/initialize-sentry-sdk.mdx +++ b/docs/product/sentry-basics/integrate-frontend/initialize-sentry-sdk.mdx @@ -30,7 +30,7 @@ The sample application is a basic frontend-only application using React and webp Sentry captures data by using a platform-specific SDK that you add to your application's runtime. To use the SDK, import and configure it in your source code. This demo project uses [Sentry's React SDK](https://github.com/getsentry/sentry-javascript/tree/develop/packages/react). -1. Install the Sentry React SDK using NPM. +1. Install the Sentry React SDK using a package manager. Make sure you're in the `frontend-tutorial` project folder. @@ -69,15 +69,11 @@ Sentry captures data by using a platform-specific SDK that you add to your appli // https://docs.sentry.io/platforms/javascript/session-replay/configuration/#general-integration-configuration replaysSessionSampleRate: 0.1, replaysOnErrorSampleRate: 1.0, - ${} }); ``` It's important to import and initialize the SDK as early as possible in your application's lifecycle so Sentry can capture errors throughout the lifecycle. - - - 1. Add your DSN key to the Sentry SDK configuration. Paste in the DSN key value you copied from the project created in the [previous section](/product/sentry-basics/integrate-frontend/create-new-project/).