-
-
Notifications
You must be signed in to change notification settings - Fork 432
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
Support for performance tracking with Apollo on Android #1331
Comments
thanks for reporting @alexmetcalfe sounds doable, looks like the Apollo Android lib offers interceptors similar to OkHttp |
Managed to hack together something today based of your OkHttp interceptor, seems to work well so far!
|
Thanks awesome @alexmetcalfe! Thank you for sharing this |
nicely done, @alexmetcalfe be aware that if it throws, I guess you won't be associating the error to the Span nor finishing the Span as errored, by the callback signatures, I'd guess you need to do something here -> |
Yeah good point, had not covered the failure side of things yet 👍 |
We use Apollo android extensively through our app.
This uses OkHttp under the hood which means I assume each request will be traced in the performance dashboard once this is complete -> #1330
However with GraphQL each request posts to the same URL. The body of the post contains the query which tells the backend what to do eg a query or mutation...
This I believe would make it difficult to understand what each network request is doing...
In the meantime we can do something similar to what the OkHttp interceptor is doing but it would be great if this came out of the box for us.
The text was updated successfully, but these errors were encountered: