Issue
Breadcrumb data is being truncated when viewed in the Sentry UI.
Resolution
-
Understand the payload size limit:
- Sentry has a maximum payload size, and breadcrumb data exceeding this limit is truncated.
- The hard limit is 8192 characters, even if you adjust the
max_value_length
option.
-
Increase the
max_value_length
:- In the Sentry SDK configuration, set
max_value_length
to the maximum allowed value to reduce truncation. - Refer to the Sentry SDK documentation for guidance on increasing this limit.
- In the Sentry SDK configuration, set
-
Consider alternate storage methods:
- If the data exceeds the limit, consider attaching the data as part of the event context or as an additional data field rather than a breadcrumb.