diff --git a/docs/platforms/javascript/common/configuration/options.mdx b/docs/platforms/javascript/common/configuration/options.mdx
index 0cc649fc82b9f7..7d46657adab61b 100644
--- a/docs/platforms/javascript/common/configuration/options.mdx
+++ b/docs/platforms/javascript/common/configuration/options.mdx
@@ -872,14 +872,6 @@ Determines how profiling sessions are controlled. It has two modes:
-
-
-**Deprecated:** Use `profileSessionSampleRate` instead to configure continuous profiling from version `7.4.0` onwards.
-
-A number between `0` and `1`, controlling the percentage chance a given sampled transaction will be profiled. (`0` represents 0% while `1` represents 100%.) Applies equally to all transactions created in the app. This is relative to the tracing sample rate - e.g. `0.5` means 50% of sampled transactions will be profiled.
-
-
-
@@ -911,14 +903,6 @@ Determines how profiling sessions are controlled. It has two modes:
-
-
-**Deprecated:** Use `profileSessionSampleRate` instead to configure continuous profiling from version 10.27.0 onwards.
-
-A number between `0` and `1`, controlling the percentage chance a given sampled transaction will be profiled. (`0` represents 0% while `1` represents 100%.) Applies equally to all transactions created in the app. This is relative to the tracing sample rate - e.g. `0.5` means 50% of sampled transactions will be profiled.
-
-
-
diff --git a/docs/platforms/javascript/guides/firebase/index.mdx b/docs/platforms/javascript/guides/firebase/index.mdx
index f34b8fadbc14df..3db1029ac534b6 100644
--- a/docs/platforms/javascript/guides/firebase/index.mdx
+++ b/docs/platforms/javascript/guides/firebase/index.mdx
@@ -96,10 +96,20 @@ Create an initialization file (for example, `instrument.js`) that imports and in
```javascript {filename:instrument.js}
const Sentry = require("@sentry/node");
+// ___PRODUCT_OPTION_START___ profiling
+const { nodeProfilingIntegration } = require("@sentry/profiling-node");
+// ___PRODUCT_OPTION_END___ profiling
Sentry.init({
dsn: "___PUBLIC_DSN___",
+ // ___PRODUCT_OPTION_START___ profiling
+
+ integrations: [
+ // Add our Profiling integration
+ nodeProfilingIntegration(),
+ ],
+ // ___PRODUCT_OPTION_END___ profiling
// ___PRODUCT_OPTION_START___ performance
// Add Tracing by setting tracesSampleRate
@@ -111,9 +121,12 @@ Sentry.init({
// ___PRODUCT_OPTION_END___ performance
// ___PRODUCT_OPTION_START___ profiling
- // Set profilesSampleRate to 1.0 to profile 100% of sampled transactions.
- // This is relative to tracesSampleRate
- profilesSampleRate: 1.0,
+ // Enable profiling for a percentage of sessions
+ // Learn more at
+ // https://docs.sentry.io/platforms/javascript/configuration/options/#profileSessionSampleRate
+ profileSessionSampleRate: 1.0,
+ // Profile automatically while there's an active sampled span
+ profileLifecycle: "trace",
// ___PRODUCT_OPTION_END___ profiling
});
```
diff --git a/docs/platforms/javascript/guides/hono/index.mdx b/docs/platforms/javascript/guides/hono/index.mdx
index e8c0afc71400a1..a76d157297271e 100644
--- a/docs/platforms/javascript/guides/hono/index.mdx
+++ b/docs/platforms/javascript/guides/hono/index.mdx
@@ -188,10 +188,12 @@ Sentry.init({
// ___PRODUCT_OPTION_END___ performance
// ___PRODUCT_OPTION_START___ profiling
- // Set profilesSampleRate relative to tracesSampleRate
+ // Enable profiling for a percentage of sessions
// Learn more at
// https://docs.sentry.io/platforms/javascript/configuration/options/#profileSessionSampleRate
profileSessionSampleRate: 1.0,
+ // Profile automatically while there's an active sampled span
+ profileLifecycle: "trace",
// ___PRODUCT_OPTION_END___ profiling
});
```