Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Session Replay] - Record network request body #4106

Open
6 of 11 tasks
Tracked by #74441
duspada opened this issue Sep 19, 2024 · 2 comments
Open
6 of 11 tasks
Tracked by #74441

[Session Replay] - Record network request body #4106

duspada opened this issue Sep 19, 2024 · 2 comments

Comments

@duspada
Copy link

duspada commented Sep 19, 2024

OS:

  • Windows
  • MacOS
  • Linux

Platform:

  • iOS
  • Android

SDK:

  • @sentry/react-native (>= 1.0.0)
  • react-native-sentry (<= 0.43.2)

SDK version: 5.33.0

react-native version: 0.71.12

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:

Click here

Configuration:

(@sentry/react-native)

  const integrations = [
        Sentry.mobileReplayIntegration({
          maskAllImages: false,
          maskAllText: false,
          maskAllVectors: false,
        }),
      ];
  const _experiments = {
        replaysSessionSampleRate: 1.0,
        replaysOnErrorSampleRate: 1.0,
      };
  Sentry.init({
    dsn: SENTRY_DSN,
    _experiments,
    integrations,
    environment: 'production',
    beforeSend: (event) => {
      return event;
    },
  });


I have the following issue:
It doesn't record network payloads, response and others like headers etc...

Steps to reproduce:

  • use axios for requests
  • activate sentry session replay
  • make some request and see the log on the website

Actual result:

  • it shows the screen recording, and the network requests
  • but it doesn't show the request and response payloads

Expected result:

  • it shows the screen recording, and the network requests
  • when i click on one request, see the request, response and headers payload
@jackstudd
Copy link

Looks like web have it, I don't get why RN doesn't => getsentry/sentry-javascript#7103

@krystofwoldrich krystofwoldrich changed the title [Session Replay] - Record network [Session Replay] - Record network request body Oct 2, 2024
@krystofwoldrich
Copy link
Member

krystofwoldrich commented Oct 2, 2024

Thank you for the message @jackstudd.

This is correct, currently the RN Replay Implementation does not record the request and response body.

I'll mark this as a feature requests and we will post updates here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Waiting for: Product Owner
Status: Needs Discussion
Development

No branches or pull requests

4 participants