Skip to content

[Session Replay][iOS] Errors from session didn't merge in one record #4664

Open
@vladyslav-honchenko

Description

@vladyslav-honchenko

What React Native libraries do you use?

React Native without Frameworks, React Navigation, Hermes

Are you using sentry.io or on-premise?

sentry.io (SaS)

@sentry/react-native SDK Version

6.7.0

How does your development environment look like?

OS: MacOS 15.3.2
Yarn: 1.22.22
Node: 20.17.0
RN: 0.71.12
React: 18.3.1
hermes: true
new architecture: false

Sentry.init()

    Sentry.init({
      dsn,
      environment: env,
      enableNative: true,
      enableNativeCrashHandling: true,
      enabled: true,
      release,
      ignoreErrors: IGNORE_ERRORS,
      dist,
      tracesSampleRate: 0.1,
        integrations: [
          Sentry.mobileReplayIntegration({
            maskAllText: false,
          }),
        ],
      replaysSessionSampleRate: 1.0,
      replaysOnErrorSampleRate: 1.0,
})
  AppRegistry.registerComponent('react_app', () => {
    // Have to call before Sentry.wrap!
    SentryHelper.setup(); <-------- here call Sentry.init
    //@ts-ignore
    return CodePush(codePushOptions)(Sentry.wrap(withPendoRN(App, null)));
  });

Steps to Reproduce

  1. Just add throw new Error('Some text') in some places of your code in some handlers for raising error. Click these handlers for raising error and look at Sentry replay.

Expected Result

All errors should be merged in 1 record as on Android now

Image

Actual Result

For iOS all errors are separate.

Image

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Status

    Needs Investigation

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions