Skip to content

after_deserialization vs after_transmit #1260

Answered by aajtodd
cprieto asked this question in Q&A
Discussion options

You must be logged in to vote

We are interested in measuring something close to TTFB vs time to read all data from the stream for the S3 client during requests

The closest you can get here is the time between before_transmit and after_transmit as the docs try to suggest. This won't really be an accurate TTFB though as the time between these phases includes reading all of the HTTP headers from the response as well as any implementation details of the HTTP client handling a request (e.g. connection acquisition time, DNS, etc). In other words the transmit phase is when we hand off the request to an HTTP client to actually send the request and get an HTTP response.

We would like to get an accurate TTFB metric emitted in…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@cprieto
Comment options

Answer selected by cprieto
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants