Skip to content

docs(react-native): Document Session Replay network details options#18423

Open
alwx wants to merge 1 commit into
masterfrom
alwx/react-native-replay-network-details
Open

docs(react-native): Document Session Replay network details options#18423
alwx wants to merge 1 commit into
masterfrom
alwx/react-native-replay-network-details

Conversation

@alwx

@alwx alwx commented Jun 16, 2026

Copy link
Copy Markdown
Contributor

DESCRIBE YOUR PR

Add a Network Details section to the React Native Session Replay docs, covering the new options on mobileReplayIntegration introduced in getsentry/sentry-react-native#6288:

  • networkDetailAllowUrls
  • networkDetailDenyUrls
  • networkCaptureBodies
  • networkRequestHeaders
  • networkResponseHeaders

⚠️ The version banner currently reads Available in React Native SDK 8.15.0 and later which is what's gonna be released next.

IS YOUR CHANGE URGENT?

  • None: Not urgent, can wait up to 1 week+

PRE-MERGE CHECKLIST

  • Checked Vercel preview for correctness, including links
  • PR was reviewed and approved by any necessary SMEs (subject matter experts)
  • PR was reviewed and approved by a member of the Sentry docs team

LEGAL BOILERPLATE

Look, I get it. The entity doing business as "Sentry" was incorporated in the State of Delaware in 2015 as Functional Software, Inc. and is gonna need some rights from me in order to utilize my contributions in this here PR. So here's the deal: I retain all rights, title and interest in and to my contributions, and by keeping this boilerplate intact I confirm that Sentry can use, modify, copy, and redistribute my contributions, under Sentry's choice of terms.

EXTRA RESOURCES

Add a Network Details section to the React Native Session Replay docs,
covering the new `networkDetailAllowUrls`, `networkDetailDenyUrls`,
`networkCaptureBodies`, `networkRequestHeaders` and
`networkResponseHeaders` options on `mobileReplayIntegration`.

Mirrors the structure of the existing Apple and Android Session
Replay configuration pages (allow/deny list, defaults, header opt-in,
body capture opt-in, 150 KB cap, server-side scrubbing note) and
calls out the React Native-specific constraints \u2014 XHR-only support
for now (covers axios), authorization-like headers always stripped,\n`UNPARSEABLE_BODY_TYPE` for binary bodies.

Related: getsentry/sentry-react-native#6288
@vercel

vercel Bot commented Jun 16, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
sentry-docs Ready Ready Preview, Comment Jun 16, 2026 10:02am
1 Skipped Deployment
Project Deployment Actions Updated (UTC)
develop-docs Ignored Ignored Jun 16, 2026 10:02am

Request Review

|-----|------|---------|-------------|
| `networkDetailAllowUrls` | `(string \| RegExp)[]` | `[]` | URL patterns to enable capture of request/response headers (and bodies, when `networkCaptureBodies` is `true`). String patterns use substring matching; `RegExp` is matched via `.test(url)`. |
| `networkDetailDenyUrls` | `(string \| RegExp)[]` | `[]` | URL patterns to **never** enable capture for, even if an allow pattern matches them. |
| `networkCaptureBodies` | `boolean` | `false` | Controls whether request and response bodies are captured for allow-listed URLs. Disabled by default since bodies can contain sensitive payloads — opt in explicitly. |

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bug: The default value for networkCaptureBodies is documented as false for React Native, which is inconsistent with the true default documented for other Sentry SDKs.
Severity: MEDIUM

Suggested Fix

Verify the actual default value of networkCaptureBodies in the React Native SDK implementation. Update the documentation to reflect the correct default value. If false is an intentional choice for React Native, consider adding a note explaining the divergence from other platforms.

Prompt for AI Agent
Review the code at the location below. A potential bug has been identified by an AI
agent. Verify if this is a real issue. If it is, propose a fix; if not, explain why it's
not valid.

Location: docs/platforms/react-native/session-replay/index.mdx#L243

Potential issue: The documentation for the `networkCaptureBodies` option in React Native
Session Replay states that its default value is `false`. This contradicts the
documentation for all other major Sentry SDKs (Apple/iOS, Android, JavaScript), where
the default is documented as `true`. This inconsistency can mislead developers, causing
them to either miss capturing network body data they expect to be collected by default,
or to add unnecessary configuration if the documentation is incorrect and the actual
default is `true`.

Did we get this right? 👍 / 👎 to inform future reviews.

@antonis antonis left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! Let's merge after shipping getsentry/sentry-react-native#6288 🎸

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants