From 32dd384b68e003ecf554222dc0f6c20e24b44d13 Mon Sep 17 00:00:00 2001 From: s1gr1d <32902192+s1gr1d@users.noreply.github.com> Date: Thu, 30 Oct 2025 12:11:22 +0100 Subject: [PATCH] docs(javascript): Change default value for `maxValueLength` --- docs/platforms/javascript/common/configuration/options.mdx | 2 +- docs/platforms/javascript/common/troubleshooting/index.mdx | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/platforms/javascript/common/configuration/options.mdx b/docs/platforms/javascript/common/configuration/options.mdx index 99d101c191547f..61146c9ff4cba0 100644 --- a/docs/platforms/javascript/common/configuration/options.mdx +++ b/docs/platforms/javascript/common/configuration/options.mdx @@ -136,7 +136,7 @@ Sentry.init({ - + Maximum number of characters every string property on events sent to Sentry can have before it will be truncated. diff --git a/docs/platforms/javascript/common/troubleshooting/index.mdx b/docs/platforms/javascript/common/troubleshooting/index.mdx index b397cf4ed7e2c0..130849616f26c0 100644 --- a/docs/platforms/javascript/common/troubleshooting/index.mdx +++ b/docs/platforms/javascript/common/troubleshooting/index.mdx @@ -48,7 +48,7 @@ For more details, see the [full documentation on Event Payload](https://develop. -`maxValueLength` has a default value of 250, but you can adjust this value according to your needs if your messages are longer. Please note that not every single value is affected by this option. +By default, `maxValueLength` is undefined and nothing is truncated, but you can change this value according to your needs if your messages are longer (for example, to `250`). Please note that not every single value is affected by this option. @@ -670,10 +670,10 @@ shamefully-hoist=true ``` - + Seeing this warning in your dev build might be misleading due to Next.js dev server internals. - + In case you are using Session Replay and experience performance issues with the client instrumentation hook, you can try lazy-loading session replay as described [here](/platforms/javascript/guides/nextjs/session-replay/#lazy-loading-replay). If you want to init the SDK itself at a later point, this will result in tracing data loosing accuracy and errors could happen before the SDK is initialized. This should be a tradeoff you make based on your use case, although we recommend initializing the SDK as early as possible.