Skip to content

Commit 012b2b1

Browse files
authored
Increase sentry maxValueLength (#111)
1 parent dcb996e commit 012b2b1

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

apps/web/src/instrumentation-client.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,10 @@ Sentry.init({
1212
debug: false,
1313
replaysSessionSampleRate: 0.1,
1414
replaysOnErrorSampleRate: 1.0,
15+
16+
// Increase max length for messages to prevent truncation (default is 250)
17+
maxValueLength: 8192,
18+
1519
integrations: [
1620
Sentry.replayIntegration({
1721
maskAllText: true,

apps/web/src/instrumentation.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,9 @@ export async function register() {
1717

1818
// Setting this option to true will print useful information to the console while you're setting up Sentry.
1919
debug: false,
20+
21+
// Increase max length for messages to prevent truncation (default is 250)
22+
maxValueLength: 8192,
2023
});
2124
}
2225

@@ -35,6 +38,9 @@ export async function register() {
3538

3639
// Setting this option to true will print useful information to the console while you're setting up Sentry.
3740
debug: false,
41+
42+
// Increase max length for messages to prevent truncation (default is 250)
43+
maxValueLength: 8192,
3844
});
3945
}
4046
}

0 commit comments

Comments
 (0)