Skip to content

Commit c7b812f

Browse files
committed
Add user feedback option to JavaScript framework onboarding guides
1 parent 313d8c6 commit c7b812f

File tree

7 files changed

+68
-11
lines changed

7 files changed

+68
-11
lines changed

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

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ You need:
2424
Choose the features you want to configure, and this guide will show you how:
2525

2626
<OnboardingOptionButtons
27-
options={["error-monitoring", "performance", "session-replay"]}
27+
options={["error-monitoring", "performance", "session-replay", "user-feedback"]}
2828
/>
2929

3030
<PlatformContent includePath="getting-started-features-expandable" />
@@ -102,6 +102,12 @@ Sentry.init({
102102
// which automatically captures Session Replays
103103
Sentry.replayIntegration(),
104104
// ___PRODUCT_OPTION_END___ session-replay
105+
// ___PRODUCT_OPTION_START___ user-feedback
106+
Sentry.feedbackIntegration({
107+
// Additional SDK configuration goes in here, for example:
108+
colorScheme: "system",
109+
}),
110+
// ___PRODUCT_OPTION_END___ user-feedback
105111
],
106112
// ___PRODUCT_OPTION_START___ performance
107113

@@ -156,6 +162,12 @@ Sentry.init({
156162
// which automatically captures Session Replays
157163
Sentry.replayIntegration(),
158164
// ___PRODUCT_OPTION_END___ session-replay
165+
// ___PRODUCT_OPTION_START___ user-feedback
166+
Sentry.feedbackIntegration({
167+
// Additional SDK configuration goes in here, for example:
168+
colorScheme: "system",
169+
}),
170+
// ___PRODUCT_OPTION_END___ user-feedback
159171
],
160172
// ___PRODUCT_OPTION_START___ performance
161173

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

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ description: "Learn how to manually set up Sentry in your Next.js app and captur
1616
Choose the features you want to configure, and this guide will show you how:
1717

1818
<OnboardingOptionButtons
19-
options={["error-monitoring", "performance", "session-replay"]}
19+
options={["error-monitoring", "performance", "session-replay", "user-feedback"]}
2020
/>
2121

2222
<PlatformContent includePath="getting-started-features-expandable" />
@@ -122,7 +122,15 @@ Sentry.init({
122122
// ___PRODUCT_OPTION_END___ performance
123123
// ___PRODUCT_OPTION_START___ session-replay
124124
// Replay may only be enabled for the client-side
125-
integrations: [Sentry.replayIntegration()],
125+
integrations: [
126+
Sentry.replayIntegration(),
127+
// ___PRODUCT_OPTION_START___ user-feedback
128+
Sentry.feedbackIntegration({
129+
// Additional SDK configuration goes in here, for example:
130+
colorScheme: "system",
131+
}),
132+
// ___PRODUCT_OPTION_END___ user-feedback
133+
],
126134

127135
// Capture Replay for 10% of all sessions,
128136
// plus for 100% of sessions with an error

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

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ Add the following overrides:
5151
Choose the features you want to configure, and this guide will show you how:
5252

5353
<OnboardingOptionButtons
54-
options={["error-monitoring", "performance", "session-replay"]}
54+
options={["error-monitoring", "performance", "session-replay", "user-feedback"]}
5555
/>
5656

5757
<PlatformContent includePath="getting-started-features-expandable" />
@@ -103,7 +103,15 @@ Sentry.init({
103103
// ___PRODUCT_OPTION_START___ session-replay
104104

105105
// Replay may only be enabled for the client-side
106-
integrations: [Sentry.replayIntegration()],
106+
integrations: [
107+
Sentry.replayIntegration(),
108+
// ___PRODUCT_OPTION_START___ user-feedback
109+
Sentry.feedbackIntegration({
110+
// Additional SDK configuration goes in here, for example:
111+
colorScheme: "system",
112+
}),
113+
// ___PRODUCT_OPTION_END___ user-feedback
114+
],
107115
// ___PRODUCT_OPTION_END___ session-replay
108116
// ___PRODUCT_OPTION_START___ performance
109117

docs/platforms/javascript/guides/react-router/index.mdx

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,13 +25,14 @@ categories:
2525

2626
## Install
2727

28-
Sentry captures data by using an SDK within your applications runtime.
28+
Sentry captures data by using an SDK within your application's runtime.
2929

3030
<OnboardingOptionButtons
3131
options={[
3232
"error-monitoring",
3333
"performance",
3434
"session-replay",
35+
"user-feedback",
3536
{
3637
id: 'profiling',
3738
checked: false
@@ -103,6 +104,12 @@ Initialize the Sentry React SDK in your `entry.client.tsx` file:
103104
+ // ___PRODUCT_OPTION_START___ session-replay
104105
+ Sentry.replayIntegration(),
105106
+ // ___PRODUCT_OPTION_END___ session-replay
107+
+ // ___PRODUCT_OPTION_START___ user-feedback
108+
+ Sentry.feedbackIntegration({
109+
+ // Additional SDK configuration goes in here, for example:
110+
+ colorScheme: "system",
111+
+ }),
112+
+ // ___PRODUCT_OPTION_END___ user-feedback
106113
+ ],
107114
+ // ___PRODUCT_OPTION_START___ performance
108115
+

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

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ Select which Sentry features you'd like to install in addition to Error Monitori
1515
## Install
1616

1717
<OnboardingOptionButtons
18-
options={["error-monitoring", "performance", "profiling", "session-replay"]}
18+
options={["error-monitoring", "performance", "profiling", "session-replay", "user-feedback"]}
1919
/>
2020

2121
Get started by installing the Sentry Remix SDK:
@@ -62,6 +62,12 @@ Sentry.init({
6262
// Replay is only available in the client
6363
Sentry.replayIntegration(),
6464
// ___PRODUCT_OPTION_END___ session-replay
65+
// ___PRODUCT_OPTION_START___ user-feedback
66+
Sentry.feedbackIntegration({
67+
// Additional SDK configuration goes in here, for example:
68+
colorScheme: "system",
69+
}),
70+
// ___PRODUCT_OPTION_END___ user-feedback
6571
],
6672
// ___PRODUCT_OPTION_START___ performance
6773

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

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ description: "Learn how to manually set up Sentry in your SvelteKit app and capt
1616
Choose the features you want to configure, and this guide will show you how:
1717

1818
<OnboardingOptionButtons
19-
options={["error-monitoring", "performance", "session-replay"]}
19+
options={["error-monitoring", "performance", "session-replay", "user-feedback"]}
2020
/>
2121

2222
<PlatformContent includePath="getting-started-features-expandable" />
@@ -65,9 +65,19 @@ Sentry.init({
6565
// https://docs.sentry.io/platforms/javascript/configuration/options/#traces-sample-rate
6666
tracesSampleRate: 1.0,
6767
// ___PRODUCT_OPTION_END___ performance
68-
// ___PRODUCT_OPTION_START___ session-replay
69-
integrations: [Sentry.replayIntegration()],
68+
integrations: [
69+
// ___PRODUCT_OPTION_START___ session-replay
70+
Sentry.replayIntegration(),
71+
// ___PRODUCT_OPTION_END___ session-replay
72+
// ___PRODUCT_OPTION_START___ user-feedback
73+
Sentry.feedbackIntegration({
74+
// Additional SDK configuration goes in here, for example:
75+
colorScheme: "system",
76+
}),
77+
// ___PRODUCT_OPTION_END___ user-feedback
78+
],
7079

80+
// ___PRODUCT_OPTION_START___ session-replay
7181
// Capture Replay for 10% of all sessions,
7282
// plus for 100% of sessions with an error
7383
// Learn more at

docs/platforms/javascript/guides/tanstackstart-react/index.mdx

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ description: "Learn how to set up and configure Sentry in your TanStack Start Re
1010
Choose the features you want to configure, and this guide will show you how:
1111

1212
<OnboardingOptionButtons
13-
options={["error-monitoring", "performance", "session-replay"]}
13+
options={["error-monitoring", "performance", "session-replay", "user-feedback"]}
1414
/>
1515

1616
<PlatformContent includePath="getting-started-features-expandable" />
@@ -91,6 +91,12 @@ Sentry.init({
9191
// ___PRODUCT_OPTION_START___ session-replay
9292
Sentry.replayIntegration(),
9393
// ___PRODUCT_OPTION_END___ session-replay
94+
// ___PRODUCT_OPTION_START___ user-feedback
95+
Sentry.feedbackIntegration({
96+
// Additional SDK configuration goes in here, for example:
97+
colorScheme: "system",
98+
}),
99+
// ___PRODUCT_OPTION_END___ user-feedback
94100
],
95101
// ___PRODUCT_OPTION_START___ performance
96102

0 commit comments

Comments
 (0)