Skip to content

Commit 9629e50

Browse files
committed
Add user feedback integration to JavaScript platform guides
1 parent c7b812f commit 9629e50

File tree

6 files changed

+63
-1
lines changed

6 files changed

+63
-1
lines changed

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

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,12 @@ Sentry.init({
112112
// ___PRODUCT_OPTION_START___ session-replay
113113
Sentry.replayIntegration(),
114114
// ___PRODUCT_OPTION_END___ session-replay
115+
// ___PRODUCT_OPTION_START___ user-feedback
116+
Sentry.feedbackIntegration({
117+
// Additional SDK configuration goes in here, for example:
118+
colorScheme: "system",
119+
}),
120+
// ___PRODUCT_OPTION_END___ user-feedback
115121
],
116122
// ___PRODUCT_OPTION_START___ performance
117123

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

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,12 @@ Sentry.init(
130130
// which automatically captures Session Replays
131131
Sentry.replayIntegration(),
132132
// ___PRODUCT_OPTION_END___ session-replay
133+
// ___PRODUCT_OPTION_START___ user-feedback
134+
Sentry.feedbackIntegration({
135+
// Additional SDK configuration goes in here, for example:
136+
colorScheme: "system",
137+
}),
138+
// ___PRODUCT_OPTION_END___ user-feedback
133139
],
134140
// ___PRODUCT_OPTION_START___ performance
135141

@@ -209,6 +215,12 @@ Sentry.init(
209215
// which automatically captures Session Replays
210216
new Sentry.Replay(),
211217
// ___PRODUCT_OPTION_END___ session-replay
218+
// ___PRODUCT_OPTION_START___ user-feedback
219+
Sentry.feedbackIntegration({
220+
// Additional SDK configuration goes in here, for example:
221+
colorScheme: "system",
222+
}),
223+
// ___PRODUCT_OPTION_END___ user-feedback
212224
],
213225

214226
// ___PRODUCT_OPTION_START___ performance
@@ -285,6 +297,12 @@ Sentry.init(
285297
// which automatically captures Session Replays
286298
Sentry.replayIntegration(),
287299
// ___PRODUCT_OPTION_END___ session-replay
300+
// ___PRODUCT_OPTION_START___ user-feedback
301+
Sentry.feedbackIntegration({
302+
// Additional SDK configuration goes in here, for example:
303+
colorScheme: "system",
304+
}),
305+
// ___PRODUCT_OPTION_END___ user-feedback
288306
],
289307
// ___PRODUCT_OPTION_START___ performance
290308

@@ -345,6 +363,12 @@ Sentry.init(
345363
// which automatically captures Session Replays
346364
Sentry.replayIntegration(),
347365
// ___PRODUCT_OPTION_END___ session-replay
366+
// ___PRODUCT_OPTION_START___ user-feedback
367+
Sentry.feedbackIntegration({
368+
// Additional SDK configuration goes in here, for example:
369+
colorScheme: "system",
370+
}),
371+
// ___PRODUCT_OPTION_END___ user-feedback
348372
],
349373
// ___PRODUCT_OPTION_START___ performance
350374

@@ -402,6 +426,12 @@ Sentry.init(
402426
// which automatically captures Session Replays
403427
Sentry.replayIntegration(),
404428
// ___PRODUCT_OPTION_END___ session-replay
429+
// ___PRODUCT_OPTION_START___ user-feedback
430+
Sentry.feedbackIntegration({
431+
// Additional SDK configuration goes in here, for example:
432+
colorScheme: "system",
433+
}),
434+
// ___PRODUCT_OPTION_END___ user-feedback
405435
],
406436
// ___PRODUCT_OPTION_START___ performance
407437

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

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,12 @@ Sentry.init({
6161
// ___PRODUCT_OPTION_START___ session-replay
6262
Sentry.replayIntegration(),
6363
// ___PRODUCT_OPTION_END___ session-replay
64+
// ___PRODUCT_OPTION_START___ user-feedback
65+
Sentry.feedbackIntegration({
66+
// Additional SDK configuration goes in here, for example:
67+
colorScheme: "system",
68+
}),
69+
// ___PRODUCT_OPTION_END___ user-feedback
6470
],
6571
// ___PRODUCT_OPTION_START___ performance
6672

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

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,15 @@ Sentry.init({
5252
sendDefaultPii: true,
5353

5454
// ___PRODUCT_OPTION_START___ session-replay
55-
integrations: [Sentry.replayIntegration()],
55+
integrations: [
56+
Sentry.replayIntegration(),
57+
// ___PRODUCT_OPTION_START___ user-feedback
58+
Sentry.feedbackIntegration({
59+
// Additional SDK configuration goes in here, for example:
60+
colorScheme: "system",
61+
}),
62+
// ___PRODUCT_OPTION_END___ user-feedback
63+
],
5664
// ___PRODUCT_OPTION_END___ session-replay
5765
// ___PRODUCT_OPTION_START___ performance
5866

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

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,12 @@ Sentry.init({
7171
// ___PRODUCT_OPTION_START___ session-replay
7272
Sentry.replayIntegration(),
7373
// ___PRODUCT_OPTION_END___ session-replay
74+
// ___PRODUCT_OPTION_START___ user-feedback
75+
Sentry.feedbackIntegration({
76+
// Additional SDK configuration goes in here, for example:
77+
colorScheme: "system",
78+
}),
79+
// ___PRODUCT_OPTION_END___ user-feedback
7480
],
7581
// ___PRODUCT_OPTION_START___ performance
7682

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

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,12 @@ if (!DEV) {
6868
// ___PRODUCT_OPTION_START___ session-replay
6969
Sentry.replayIntegration(),
7070
// ___PRODUCT_OPTION_END___ session-replay
71+
// ___PRODUCT_OPTION_START___ user-feedback
72+
Sentry.feedbackIntegration({
73+
// Additional SDK configuration goes in here, for example:
74+
colorScheme: "system",
75+
}),
76+
// ___PRODUCT_OPTION_END___ user-feedback
7177
],
7278
// ___PRODUCT_OPTION_START___ performance
7379

0 commit comments

Comments
 (0)