Skip to content

feat(network-activity-plugin): show request initiator details#263

Open
draggie wants to merge 1 commit into
callstackincubator:mainfrom
draggie:feat/network-activity-initiator-details
Open

feat(network-activity-plugin): show request initiator details#263
draggie wants to merge 1 commit into
callstackincubator:mainfrom
draggie:feat/network-activity-initiator-details

Conversation

@draggie
Copy link
Copy Markdown

@draggie draggie commented May 12, 2026

Description

Adds first-class request initiator details to Network Activity. HTTP requests now capture generated stack frames immediately, resolve them through Metro symbolication asynchronously, and update the selected request with the best source-mapped app frame when available.

The Network Activity UI now includes an Initiator tab and an Initiator column, shows generated bundle locations only as fallback/debug context, and suppresses internal Metro /symbolicate requests so source-map lookups do not pollute the request list.

Related Issue

Closes #242

Context

React Native/Hermes initially reports request origins as generated Metro bundle locations, which makes the raw data hard to use. This implementation keeps request capture synchronous so rows appear immediately, then emits a follow-up initiator update once symbolication completes.

The selected initiator frame prefers source-mapped app frames and filters low-value runtime/plugin frames. The generated location remains available for debugging when source maps are unavailable. The Metro code frame is only displayed when it matches the selected source frame to avoid showing an internal interceptor frame for an app-level request.

Testing

Run network testing tool within mobile playground, enable Rozenite panel and see requests to contain new tab "Initiator" with details of where the request originated from.
image

Note: pnpm format:all currently fails on existing unrelated formatting issues across the repository, so formatting was verified for the files changed in this PR.

@draggie draggie marked this pull request as ready for review May 12, 2026 11:50
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.

Show request initiator details in Network Activity

1 participant