You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Remove the default string limit applied when serializing envelopes.
The `max_value_length` parameter now accepts `None`, which disables string truncation. The default value is changed to `None`.
The change follows on from raising the limit in #4632.
Replaces `DEFAULT_MAX_VALUE_LENGTH` with the value 1024 in tests, which was the original limit.
Closes#4988
* Annotating the payload with the _meta field whenever trimming happens.
120
120
121
121
:param max_request_body_size: If set to "always", will never trim request bodies.
122
-
:param max_value_length: The max length to strip strings to, defaults to sentry_sdk.consts.DEFAULT_MAX_VALUE_LENGTH
122
+
:param max_value_length: The max length to strip strings to, or None to disable string truncation. Defaults to None.
123
123
:param is_vars: If we're serializing vars early, we want to repr() things that are JSON-serializable to make their type more apparent. For example, it's useful to see the difference between a unicode-string and a bytestring when viewing a stacktrace.
124
124
:param custom_repr: A custom repr function that runs before safe_repr on the object to be serialized. If it returns None or throws internally, we will fallback to safe_repr.
0 commit comments