Skip to content

Record network request/response bodies in Session Replay #4106

Closed

Description

@duspada

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?

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

Activity

  1. moved this to Waiting for: Product Owner in GitHub Issues with 👀 3on Sep 19, 2024
  2. jackstudd commented on Sep 25, 2024

    @jackstudd

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

  3. changed the title [-][Session Replay] - Record network[/-] [+][Session Replay] - Record network request body[/+] on Oct 2, 2024
  4. krystofwoldrich commented on Oct 2, 2024

    @krystofwoldrich
    Contributor

    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.

  5. changed the title [-][Session Replay] - Record network request body[/-] [+]Record network request/response bodies in Session Replay[/+] on Dec 10, 2024
  6. shmkane commented on Feb 18, 2025

    @shmkane

    Just curious how the Sentry team prioritizes GH issues -- Is this on y'alls radar as a to-do item, or waiting for more thumbs ups/community feedback?

  7. 10 remaining items

  8. george-g-y-b commented on Aug 13, 2025

    @george-g-y-b

    @krystofwoldrich any update on when we can expect this? Inspecting network request/response bodies is pretty vital for debugging issues in production 🤞🏽

  9. moved this to Waiting for: Product Owner in GitHub Issues with 👀 3on Aug 13, 2025
  10. moved this from Waiting for: Product Owner to No status in GitHub Issues with 👀 3on Aug 18, 2025
  11. kahest commented on Aug 18, 2025

    @kahest
    Contributor

    @george-g-y-b thanks for your interest - we are currently focusing on other improvements to SR, but given the interest in this feature, we prioritize it among the first new functionalities we're going to add. Please follow the updates in this GH issue.

  12. github-actions commented on Jun 18, 2026

    @github-actions
    Contributor

    A PR closing this issue has just been released 🚀

    This issue was referenced by PR #6288, which was included in the 8.15.0 release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions