You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Native HTTP breadcrumb dedup never matches requests that have a query string #6872
Every API request that has a query string shows up twice in an event's breadcrumbs: once from the JS XHR instrumentation and once from the native iOS network tracker.
deviceContextIntegration already tries to remove these duplicates (deduplicateNativeHttpBreadcrumbs in integrations/devicecontext.js). It matches a native breadcrumb to a JS one by method, status, a 2 second time window, and an exact comparison of data.url. The URL comparison never matches when there is a query string:
the JS breadcrumb's data.url is the full URL including ?query
the native breadcrumb's data.url has no query; the query is stored separately in data["http.query"]
We also saw the host casing and a trailing slash differ between the two in some cases, which defeats the exact comparison as well.
Steps to reproduce
iOS app with default integrations (enableNetworkBreadcrumbs defaults to on).
Make any request whose URL has a query string, e.g. GET https://api.example.com/posts?page=1.
Capture an error and look at its breadcrumbs: the request appears twice, one xhr and one http breadcrumb.
What we did
We changed the URL comparison in the dedupe to compare a normalized form of both URLs: query string and fragment removed, scheme and host lowercased, trailing slash removed. After that each request appears once. Requests without a query string were already deduplicated correctly, so they are unaffected.
Activity
linear-code commentedon Oct 12, 2026
RN-818
antonis commentedon Oct 12, 2026
Thank you for reporting. We will investigate this and iterate back 🙇
github-actions commentedon Oct 15, 2026
A PR closing this issue has just been released 🚀
This issue was referenced by PR #6881, which was included in the 8.31.0 release.