Skip to content

Missing keys in Redux state using Redux integration #3148

@ghasemikasra39

Description

@ghasemikasra39

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions