-
Notifications
You must be signed in to change notification settings - Fork 408
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
[WIP] Reworked Request timings in protocol/protocol_local Dumpfiles #87
base: master
Are you sure you want to change the base?
Conversation
Made the datafile RFC compliant is always a good thing, but need a lot of communication to all users before apply it in master. Maybe in 2 different changes, one that do the compliance and after the one adding new fields. |
@rodo making it compliant will require a good communication to users (since fields are separated by |
* updated documentation * "fixed" duration in dumpfile
Just a few remarks:
Otherwise, i'm OK to be RFC compliant |
Thanks for the remarks! I was thinking about adding more of those new timings to |
This is Work in Progress: The basic stuff should work, but I'm running lot's of tests to confirm that all timings are correct.
My goal was to have the following timings to the dumpfile (when using
protocol
orprotocol_local
):The time of start (1) was not exposed to the dumpfiles previously, 2. was measured but not exposed either, 4. is measured when the first data is received and the HTTP status is not set (see
ts_http_common:parse
). 5. was already present in dumpfile.I haven't found a good way to get the Duration to send request timing, any hints are welcome.I also added
request_size
which is the size of the request headers + request payload/body, if any.I updated the documentation ("6.1. File structure") to reflect the changes to the dumpfile. I also made it more explicit that the previously existing
date
value is NOT the end of the request, but the point in time when the request was logged. That is almost the same most of the time, but it made me almost crazy when I was trying to adding up the numbers :)I also made the dumpfile output RFC4180 compliant and added header to
protocol_local
files.Please note that I'm an Erlang noob and my changes are probably not very idiomatic Erlang. I appreciate any feedback! When this gets accepted, I'm happy to squash my changes to a single, descriptive commit.