Skip to content

Commit a2f87e1

Browse files
sfanahataShannon Anahata
andauthored
Fixing session replay responsiveness in code blocks (#14406)
## DESCRIBE YOUR PR Session replay code was showing up in the code blocks whether or not `session replay` was selected as a feature to install. ## IS YOUR CHANGE URGENT? Help us prioritize incoming PRs by letting us know when the change needs to go live. - [ ] Urgent deadline (GA date, etc.): <!-- ENTER DATE HERE --> - [ ] Other deadline: <!-- ENTER DATE HERE --> - [x] None: Not urgent, can wait up to 1 week+ ## SLA - Teamwork makes the dream work, so please add a reviewer to your PRs. - Please give the docs team up to 1 week to review your PR unless you've added an urgent due date to it. Thanks in advance for your help! ## PRE-MERGE CHECKLIST *Make sure you've checked the following before merging your changes:* - [ ] Checked Vercel preview for correctness, including links - [ ] PR was reviewed and approved by any necessary SMEs (subject matter experts) - [ ] PR was reviewed and approved by a member of the [Sentry docs team](https://github.com/orgs/getsentry/teams/docs) --------- Co-authored-by: Shannon Anahata <[email protected]>
1 parent 00dfa1b commit a2f87e1

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

docs/platforms/javascript/guides/nextjs/index.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@ Sentry.init({
6969
Sentry.browserTracingIntegration(),
7070
// ___PRODUCT_OPTION_END___ performance
7171
// ___PRODUCT_OPTION_START___ session-replay
72+
// Replay may only be enabled for the client-side
7273
Sentry.replayIntegration(),
7374
// ___PRODUCT_OPTION_END___ session-replay
7475
// ___PRODUCT_OPTION_START___ user-feedback
@@ -93,8 +94,7 @@ Sentry.init({
9394
tracesSampleRate: 1.0,
9495
// ___PRODUCT_OPTION_END___ performance
9596
// ___PRODUCT_OPTION_START___ session-replay
96-
97-
// Capture Replay for 10% of all sessions,
97+
// Capture Replay for 10% of all
9898
// plus for 100% of sessions with an error
9999
// Learn more at
100100
// https://docs.sentry.io/platforms/javascript/session-replay/configuration/#general-integration-configuration

docs/platforms/javascript/guides/nextjs/manual-setup.mdx

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -127,25 +127,26 @@ Sentry.init({
127127
// https://docs.sentry.io/platforms/javascript/configuration/options/#traces-sample-rate
128128
tracesSampleRate: 1.0,
129129
// ___PRODUCT_OPTION_END___ performance
130-
// ___PRODUCT_OPTION_START___ session-replay
131-
// Replay may only be enabled for the client-side
132130
integrations: [
131+
// ___PRODUCT_OPTION_START___ session-replay
132+
// Replay may only be enabled for the client-side
133133
Sentry.replayIntegration(),
134+
// ___PRODUCT_OPTION_END___ session-replay
134135
// ___PRODUCT_OPTION_START___ user-feedback
135136
Sentry.feedbackIntegration({
136137
// Additional SDK configuration goes in here, for example:
137138
colorScheme: "system",
138139
}),
139140
// ___PRODUCT_OPTION_END___ user-feedback
140141
],
142+
// ___PRODUCT_OPTION_START___ session-replay
141143

142144
// Capture Replay for 10% of all sessions,
143145
// plus for 100% of sessions with an error
144146
// Learn more at
145147
// https://docs.sentry.io/platforms/javascript/session-replay/configuration/#general-integration-configuration
146148
replaysSessionSampleRate: 0.1,
147149
replaysOnErrorSampleRate: 1.0,
148-
149150
// ___PRODUCT_OPTION_END___ session-replay
150151
// ___PRODUCT_OPTION_START___ logs
151152

0 commit comments

Comments
 (0)