Closed krystofwoldrich closed 1 day ago
Due to the size limitation of the event, where breadcrumbs are stored, and the fact that breadcrumbs are not symbolicated we are not going to implement this.
Reopening
We only send first X components going from the touch target outwards so the size of events is not an issue.
Hermes is a default engine in RN from version 0.70 (current 0.74). And Release build with Hermes are not minified by default, because of Hermes Bytecode.
Related to https://github.com/getsentry/sentry-react-native/issues/3885, we might not need the Babel plugin.
Description
The current components tree sent with UI Action Touch Breadcrumbs only lists components with defined
displayName
, which are mostly RN Core Components likeView
andText
. Comparing that with RN Dev Tools there are much more components in the tree. I'm sharing a code snippet of how this could be improved and a comparison to the current state and dev tools.Current code: https://github.com/getsentry/sentry-react-native/blob/ed50cf4a4b7ce6f8d985d6fce9d6d311846f74b9/src/js/touchevents.tsx#L209
A snippet of an enhanced tree reader:
Todo:
elementType.toString().match(/([a-zA-Z_{1}][a-zA-Z0-9_]+)(?=\()/g)?.[0])
Current components tree:
With the snippet:
React Native Dev Tools for reference: