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
:returns: An event ID. May be `None` if there is no DSN set or of if the SDK decided to discard the event for other reasons. In such situations setting `debug=True` on `init()` may help.
A very smart serializer that takes a dict and emits a json-friendly dict.
101
+
Currently used for serializing the final Event and also prematurely while fetching the stack
102
+
local variables for each frame in a stacktrace.
103
+
104
+
It works internally with 'databags' which are arbitrary data structures like Mapping, Sequence and Set.
105
+
The algorithm itself is a recursive graph walk down the data structures it encounters.
106
+
107
+
It has the following responsibilities:
108
+
* Trimming databags and keeping them within MAX_DATABAG_BREADTH and MAX_DATABAG_DEPTH.
109
+
* Calling safe_repr() on objects appropriately to keep them informative and readable in the final payload.
110
+
* Annotating the payload with the _meta field whenever trimming happens.
111
+
112
+
:param max_request_body_size: If set to "always", will never trim request bodies.
113
+
:param max_value_length: The max length to strip strings to, defaults to sentry_sdk.consts.DEFAULT_MAX_VALUE_LENGTH
114
+
: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.
0 commit comments