-
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
Support detailed logging for failed requests #864
Comments
A workaround for this could be something like:
To get the response body/headers/etc you can use the exception parameter which is a subclass of But it would be really useful to make this a command-line argument similar to how we export the distribution csv |
Is this solved by PR #999 ? |
No solved by #999 I think, but I don't think the use-case for this is common enough for it to be included in Locust itself when you can easily achieve it yourself by using the request_failure event. |
Description of issue / feature request
Log all failed requests to a CSV or JSON file. Any time an HTTP request is marked as failure, log details of that request to a CSV file.
Currently we only have the capability to export summary information to a CSV file, but it is incredibly useful to correlate timestamps and details of requests to timestamps in service/application
Exporting request details is a critical part of analyzing the results of any performance test.
The expectation would also be that this functionality would work when running Locust headlessly.
Expected behavior
Desired fields would be, at the very least: request timestamp, request duration, response status code, response body, and perhaps some headers.
Actual behavior
Locust does not appear to have any useful support for this feature in its current state.
Some similar but not identical issues include: #675 #774
The text was updated successfully, but these errors were encountered: