Issue
My error messages shortened, preventing me from obtaining vital debugging information.
Applies To
- All Sentry Users
Resolution
- If you haven't already, try increasing maxValueLength (or equivalent). Most SDKs have the option to increase the character limit. Note: The hard limit is 8192 characters.
Sentry.init({
dsn: "your_dsn",
maxValueLength: 8192
});
-
If the max length is not enough, try adding the data to the scope (docs) to capture it as context (docs) as that field has higher data limits. Alternately, you can add custom logic using the
before-send
(docs) to check for the length of the message, and if it is over the limit (docs), add it to the context data field.