Skip to content

Android: Report fetch(), XHR and RCTNetworking call stacks to Network panel - #54084

Closed
motiz88 wants to merge 2 commits into
react:mainfrom
motiz88:export-D83981793
Closed

Android: Report fetch(), XHR and RCTNetworking call stacks to Network panel#54084
motiz88 wants to merge 2 commits into
react:mainfrom
motiz88:export-D83981793

Conversation

@motiz88

@motiz88 motiz88 commented Oct 7, 2025

Copy link
Copy Markdown
Contributor

Summary:
Android port of D83754145.

  1. Teaches the native networking module on IOS to track a devToolsRequestId along with each request, and use it instead of the internal requestId to identify the request to NetworkReporter.
  2. Uses __NETWORK_REPORTER__.createDevToolsRequestId (D83238216) to generate a devToolsRequestId from JS and pass it into native. This records a JavaScript call stack as the initiator of the request.

Changelog: [Internal]

Differential Revision: D83981793

@meta-cla meta-cla Bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Oct 7, 2025
@meta-codesync

meta-codesync Bot commented Oct 7, 2025

Copy link
Copy Markdown

@motiz88 has exported this pull request. If you are a Meta employee, you can view the originating Diff in D83981793.

@motiz88
motiz88 force-pushed the export-D83981793 branch 2 times, most recently from 375dbaa to ada6179 Compare October 8, 2025 16:52
Summary:

Changelog:
[Android][Deprecated] Mark `NetworkingModule.sendRequestInternal` as deprecated

The `NetworkingModule.sendRequestInternal` method is an implementation detail of the `sendRequest` method and does not need to be public. In this diff, we mark it as deprecated ahead of removing it from the public API in a future release of React Native.

Differential Revision: D84250142
… panel (react#54084)

Summary:

Android port of D83754145.

1. Teaches the native networking module on IOS to track a `devToolsRequestId` along with each request, and use it instead of the internal `requestId` to identify the request to `NetworkReporter`.
2. Uses `__NETWORK_REPORTER__.createDevToolsRequestId` (D83238216) to generate a `devToolsRequestId` from JS and pass it into native. This records a JavaScript call stack as the [initiator](https://cdpstatus.reactnative.dev/devtools-protocol/tot/Network#type-Initiator) of the request.

Changelog: [Internal]

Reviewed By: huntie

Differential Revision: D83981793
@meta-codesync meta-codesync Bot closed this in 487844e Oct 10, 2025
@facebook-github-bot facebook-github-bot added the Merged This PR has been merged. label Oct 10, 2025
@meta-codesync

meta-codesync Bot commented Oct 10, 2025

Copy link
Copy Markdown

This pull request has been merged in 487844e.

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

Labels

CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. fb-exported Merged This PR has been merged. meta-exported p: Facebook Partner: Facebook Partner

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants