test: verify network tracking end to end - #8722
Open
denrase wants to merge 3 commits into
Open
Conversation
Add a real URLSession request test that waits for the public beforeBreadcrumb callback and verifies URL, method, status, and timing. Include it in the local server plan and isolate the failed-request snapshot from unrelated breadcrumbs. Refs #8127
denrase
marked this pull request as ready for review
August 7, 2026 13:25
denrase
requested review from
NinjaLikesCheez,
itaybre,
noahsmartin,
philipphofmann and
philprime
as code owners
August 7, 2026 13:25
6 tasks
denrase
marked this pull request as draft
August 7, 2026 13:40
Add a delayed local response and verify the network span includes the server delay when running through URLSession swizzling. Refs #8127
denrase
marked this pull request as ready for review
August 7, 2026 14:27
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
📜 Description
URLSessionrequest test that verifies network breadcrumb URL, method, status code, and duration.💡 Motivation and Context
Verify that network breadcrumbs and HTTP performance span timing remain correct with potential Swift-backed networking changes in iOS 27.
Refs #8127
💚 How did you test it?
swift test --package-path test-servertest-without-building📝 Checklist
sendDefaultPIIis enabled.#skip-changelog