Open mpfaff opened 3 months ago
Correct, Goose is tracking requests in milliseconds: https://github.com/tag1consulting/goose/blob/main/src/metrics.rs#L359 https://docs.rs/goose/latest/goose/metrics/struct.GooseRequestMetric.html#structfield.response_time
Would you consider using a smaller unit? I think microseconds would still allow Goose to track requests for any reasonable amount of time.
I'd welcome a PR to make goose more granular! We'd need to do some testing to confirm it doesn't cause any regressions in functionality or performance, and update all the documentation. But it seems an excellent step forward.
Did you consider using HdrHistogram? Looks like it should improve both the accuracy and performance, and take care of the coordinated omission code as well.
Average request time seems unaffected, but minimum request time, (probably) maximum request time, and all response time metrics appear to round up to 1 ms.