Skip to main content

Why is my breadcrumb data being cut off in Sentry?

Updated over a month ago

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.

  • 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.

Did this answer your question?