Replies: 1 comment
-
This is a vey good question and sorry for delay, I'm not sure how to perform this also because all the work that we done is performed by the Link that we currently we do not manage. Maybe creating your own Link solve your problem? BTW, I'm not sure about the answer, so if you want we can look into it. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I was planning to provide my custom HttpClient to my Graphql object.
The custom HttpClient has the metrics tracking attached to it.
I can either use Datadog or Firebase Performance, or even my custom client to achieve it.
But one can only override the
send
method in the HttpClient.And I feel the GraphQL client uses the
send
method just once when it performs the first request maybe?And in other queries, it uses the
request
method to perform a query or mutation.How can I add my metrics to it?
Below is the code snippet from
query_manager.dart
that performs the request.So how can we log/instrument every request (basically get the start and end time) ?
Beta Was this translation helpful? Give feedback.
All reactions