Closed lisabaut closed 4 years ago
same issue
Any news?
I saw @lobsterkatie 's response on https://github.com/getsentry/sentry-java/issues/543 about RN sentry no longer relying on the Java SDK which defines the max nesting level of 3. However I still don't know how to increase this limit, what if i want a nesting level of 10? As @lisabaut pointed out in the original post, the ExtraErrorData
integration does not work in React Native.
any tips from anyone?
@jennmueng You're the most up on the current RN SDK. Do you know which of the wrapped SDKs sets the max depth? If not I can dig into it.
@lobsterkatie @alew97 It's set on JS, now Android and Cocoa shouldn't touch the nesting depth anymore if I recall correctly. So if you just set normalizeDepth
it should be good.
OS:
Platform:
SDK:
@sentry/react-native
react-native version: 0.61.2
Init Code:
I have the following issue:
When passing a deep nested object with
scope.setExtras
to the local scope like:the object's data structure is displayed nicely within the report details view in the Sentry UI below the "Additional Data" section.
Unfortunately it stops showing further key-value pairs below the third nested object level. Instead each value is displayed with
<recursion limit hit>
.Within the docs for react native SDK I was not able to find a possibility to increase the display depth for nested objects.
This issue does not provide a solution unfortunately.
This issue with a similar topic refers to the Javascript SDK and points to the Sentry JavaScript docs.
But
Sentry.Integrations.ExtraErrorData
does not exist in the@sentry/react-native
packageand this code does not work for me in
react-native
:Question:
How can I increase the depth level in
@sentry/react-native
for displaying deep nested objects in the "Additional Data" section? Thanks.