-
Notifications
You must be signed in to change notification settings - Fork 23
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
Feature request - be able to tell if API was resolved by memory, cache, or source #204
Comments
I was thinking about this topic recently. This would likely be a combination of things correct? Since each field is resolved independently (potentially). To handle the calculation, which could be based off more than source, but query time, transfer bandwidth etc. did you have any ideas on the output format? To get a precise tracking total, I guess you could have a per field tracking object, similar to how the apollo engine / tracing api works. Interested in thoughts on this topic in general. |
I was just thinking about apollo-datasource-rest for now. It returns the
rest API from the three different sources. I just need to track that
source. I know tracing can give some individual source timing, and that
apollo-engine can do some pretty sweet stuff with individual result
caching. But this feature is specifically about the restful.datasource
itself.
…On Tue, Oct 16, 2018, 6:51 PM Stephen Richardson ***@***.***> wrote:
I was thinking about this topic recently. This would likely be a
combination of things correct? Since each field is resolved independently
(potentially). To handle the calculation, which could be based off more
than source, but query time, transfer bandwidth etc. did you have any ideas
on the output format? To get a precise tracking total, I guess you could
have a per field tracking object, similar to how the apollo engine /
tracing api works.
Interested in thoughts on this topic in general.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<https://github.com/apollographql/apollo-server/issues/1825#issuecomment-430428645>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/Al_FOSPy6aXJaHfvv80sfIpH1RDQF8TDks5ulmL1gaJpZM4XeUk7>
.
|
You can do that already with a simple trick overide the trace function and check if it has the age header in the response
|
I would like to be able to tell what resolved an API call. This can currently be resolved by either the in-memory cache, and external cache, or the actual source. This is needed for a billing log I am needing to write and I accumulate the data as the request is being processed (in my datasource code). This could be a feature that is 'turned on' somehow, so that users that do not need the feature will not enable it.
The text was updated successfully, but these errors were encountered: