Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

URLSessionInstrumentation Hanging When Used With Apollo iOS for iOS 17+ #662

Open
jescriba opened this issue Dec 24, 2024 · 0 comments
Open

Comments

@jescriba
Copy link

jescriba commented Dec 24, 2024

Hi! I've been working to integrate opentelemetry into our project which heavily uses GraphQL with the Apollo iOS package . It works great on iOS 16, but have run into frequent indefinite hangs or additional latency for iOS 17.0+. In particular their resultHandler here doesn't seem to be predictably called. Our app is currently built with Swift 5, Xcode 16.2, and SwiftUI and heavily uses async/await concurrency patterns.

I've done some debugging locally and pin pointed my particular issue to the use of assigning the FakeDelegate here. If I either:

  • remove the delegate assignment
  • OR leave the assignment but just comment out the optional function declaration here
    then my graphql network calls don't run into any issues and the resultHandler is predictably called (with no additional latency).

I'm wondering - if the FakeDelegate assignment (or the empty func urlSession(_ session: URLSession, task: URLSessionTask, didCompleteWithError error: Error?)) is still required or the original intent? Curious to learn more or understand what might be causing the issue.

Happy to follow up with any additional debugging info.

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

No branches or pull requests

1 participant