artillery icon indicating copy to clipboard operation
artillery copied to clipboard

feat: Add request path to response entries

Open NivLipetz opened this issue 6 years ago • 3 comments

Adds the request path to each response entry. This feature is useful when looking at the test as a whole, or at periods of time, to narrow down which requests returned 2xx/4xx/5xx as well as their latencies. This enhancement of metrics allows for better understanding of each endpoint the test loads.

NivLipetz avatar Dec 25 '18 12:12 NivLipetz

This could be done with a custom afterResponse JS function rather than by extending the internal stats object. Any reason that wouldn't work for your use-case?

hassy avatar Jan 04 '19 12:01 hassy

For my use-case it doesn't seem that I can recreate my needed behaviour by only using the afterResponse JS function.

The motivation of this feature is to be able to audit the number of requests sent and response codes received from each distinct endpoint. This can only be done by adding the path to each entry as done in the file /core/lib/runner.js where the event response is listened to.

NivLipetz avatar Jan 09 '19 11:01 NivLipetz

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.

CLAassistant avatar Apr 02 '22 16:04 CLAassistant