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

Does response time include download time? #125

Closed
ghost opened this issue Aug 28, 2019 · 1 comment
Closed

Does response time include download time? #125

ghost opened this issue Aug 28, 2019 · 1 comment
Assignees
Labels
question Further information is requested

Comments

@ghost
Copy link

ghost commented Aug 28, 2019

  1. Does response time include response download time if I have a large size response? Or it's just time to first byte?
  2. Is it possible to print out the response for some query?

Thanks!

@bojand
Copy link
Owner

bojand commented Aug 29, 2019

Hello,

  1. With regards to stats measured, we use WithStatsHandler options to capture call stats. Specifically we only capture the End event which contains stats when an RPC ends. My understanding is that this should include the download of the payload and deserializing of the data. Basically, for unary calls for example, the order of call stats events is:
Begin
OutHeader
OutPayload
InHeader
InPayload
InTrailer
End

This measurement was chosen as it more accurately represents the total lag clients would experience until they can use the call response, so I thought it was a more meaningful data point.

  1. Right now, no there is no mechanism of logging the data from the server. This may be possible with some kind of debug option where we can log to a debug file events and data received.

Hope this clears things up.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

1 participant