-
Notifications
You must be signed in to change notification settings - Fork 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
Add response_length to request_failure event #1144
Add response_length to request_failure event #1144
Conversation
Codecov Report
@@ Coverage Diff @@
## master #1144 +/- ##
=========================================
+ Coverage 75.12% 75.62% +0.5%
=========================================
Files 18 20 +2
Lines 1833 1879 +46
Branches 280 290 +10
=========================================
+ Hits 1377 1421 +44
- Misses 390 391 +1
- Partials 66 67 +1
Continue to review full report at Codecov.
|
Nice! The Line 616 in 795b5a1
Yeah, I think that the next version we release should be 0.13 (the new wait time API have now also been merged). |
Hmm, we might also need something like #1088, but for response_length |
Responses that have an undefined response_length? Maybe... but I think we're ok with counting them as zero for now. Or do you feel this relates to the PR? As we dont calculate average response length, it doesnt really hurt that undefined response length cannot be separated from zero response times. |
We do calculate the average response length: We've been using 0 for failures up until now (since it wasn't available in the event params), so it wouldn't make it more wrong to keep doing it, though maybe it would be worth fixing it now when it is available? |
Ah, nice! Then I guess we can merge this, and perhaps create a separate issue for excluding failures with None as response_length, from the average response size. |
Like with request_success... This breaks compatibility with existing tests that use event handlers with positional arguments. Maybe it is worth a bumped minor version, to indicate that to users.