-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Fix incorrect tracing of corner case HTTP requests #862
Conversation
Some details: - Before this, some of the measured metrics could be negative, or in one case - hugely positive (saving a timestamp instead of a duration)... - The changes were first developed and tested in this debug branch: https://github.com/na--/k6/tree/debug-neg-http-measurements - Long term, it seems that a rewrite would be needed, since using atomics to measure these metrics isn't flexible enough. It's practically impossible to measure times correctly when the standard library decides to retry an HTTP/2 request :/
Codecov Report
@@ Coverage Diff @@
## master #862 +/- ##
==========================================
+ Coverage 70.09% 70.12% +0.03%
==========================================
Files 111 111
Lines 8720 8736 +16
==========================================
+ Hits 6112 6126 +14
- Misses 2214 2215 +1
- Partials 394 395 +1
Continue to review full report at Codecov.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
just some typos
I'm not against leaving the debug log just asking
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Some details:
Tracer
would be needed, since using atomics to measure these metrics isn't flexible enough. It's practically impossible to measure times correctly when the standard library decides to retry an HTTP/2 request... :/ These fixes will work for now, but I'll create a new issue about it.This should fix #588 for good.