Skip to content

ReplayType incorrectly being identified as Session instead of Buffer #5879

@minori-fh

Description

@minori-fh

What React Native libraries do you use?

React Native without Frameworks

Are you using sentry.io or on-premise?

sentry.io (SaS)

Are you using any other error monitoring solution alongside Sentry?

Yes

Other Error Monitoring Solution Name

No response

@sentry/react-native SDK Version

7.4.0

How does your development environment look like?

⬇  Place the `npx react-native@latest info` output here. ⬇




Sentry.init()

{
      dsn: env.SENTRY_DSN,
      release: env.APP_VERSION_NAME,
      dist: env.APP_VERSION_CODE,
      sendDefaultPii: true,
      tracesSampleRate: 0.1,
      profilesSampleRate: 0,
      replaysSessionSampleRate: 0,
      replaysOnErrorSampleRate: 0.05,
      integrations: [
        Sentry.mobileReplayIntegration({
          maskAllText: false,
          maskAllImages: false,
          maskAllVectors: false,
        }),
        Sentry.appStartIntegration(),
        Sentry.reactNativeTracingIntegration(),
        this.navigationIntegration,
        featureFlagsIntegration(),
      ],
      enableAutoSessionTracking: true,
      sessionTrackingIntervalMillis: 1000,
      enableCaptureFailedRequests: true,
      enableUserInteractionTracing: true,
      attachScreenshot: false,
      debug: false,
      enableAppStartTracking: true,
      enableNativeFramesTracking: true,
      enableStallTracking: true,
    }

Steps to Reproduce

Capture session replay with init above.

Expected Result

Session replays without errors should not be coming in without errors. If they are they should be of replayType: buffer.

Actual Result

Session replays are coming in without any errors and are of replayType: Session.

Metadata

Metadata

Assignees

No fields configured for issues without a type.

Projects

Status

Waiting for: Product Owner

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions