sentry-javascript: Missing keys in Redux state using Redux integration
OS:
- Windows
- MacOS
- Linux
Platform:
- iOS
- Android
SDK:
-
@sentry/react-native(>= 1.0.0) -
react-native-sentry(<= 0.43.2)
SDK version: 2.0.2
react-native version: 0.63.3
Are you using Expo?
- Yes
- No
Are you using sentry.io or on-premise?
- sentry.io (SaaS)
- on-premise
If you are using sentry.io, please post a link to your issue so we can take a look:
[Link to issue]
Configuration:
(@sentry/react-native)
Sentry.init({
dsn: "https://0123456789",
enableAutoSessionTracking: true,
debug: getTrackerEnv() === 'development' ? true : false,
environment: getTrackerEnv(),
normalizeDepth: 10,
});
I have following issue:
I play with normalizeDepth value, when I set it to small value like 3, I don’t see the deepest level,when I set it to large values like 200, some keys are missing. I cannot see my full redux state (containing all the keys and the deepest depth). I don’t care if the data is secret, user password, etc. and I don’t care how much data will be passed to Sentry. I just want to receive 100% (the full redux state tree containing all keys to their deepest depth) in my Sentry dashboard.
Steps to reproduce:
- Configure Sentry as the documentation says
- Add the Sentry redux enhancer as follows:
const sentryReduxEnhancer = Sentry.createReduxEnhancer();
let store = configureStore({
reducer: rootReducer,
middleware: [...defaultMiddleware, epicMiddleware],
enhancers: [sentryReduxEnhancer]
});
Actual result:
Sentry does not send the full redux state tree to the dashboard. regardless of the value of normalizeDepth.
Expected result:
Sentry must send full redux state tree (including all keys with the deepest depth) when normalizeDepth is set to a high value like 200.
About this issue
- Original URL
- State: closed
- Created 4 years ago
- Reactions: 9
- Comments: 27 (8 by maintainers)
I am still able to reproduce this, with a large section of the redux state missing. Will add this to the TODO to look into.
I’m experience the same issue. I have
normalizeDepthset to 10. Entire sections of my Redux store are missing even though they are in the POST request. I’ve also played withmaxBreadcrumbs, reducing them down to 5 doesn’t resolve, so it’s not a payload size issue.Some keys are completely missing. I checked the
json event. It misses exactly the same keys as the ones missing in the actually event screen.