Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Auto merge of #709 - Mark-Simulacrum:add-metric, r=Mark-Simulacrum
Emit metrics for record_progress endpoint Previously we were only tracking the worker time, not the endpoint. We see that there is a direct correlation with the throughput of a job and the worker time. This seems wrong to me, because as long as the worker is keeping up with the input rate, the throughput shouldn't be affected. Note that we believe that the worker should not affect the HTTP endpoint at all - we connect these with a bounded queue and pushing into the queue is done with `try_send`, which shouldn't block (https://docs.rs/crossbeam-channel/latest/crossbeam_channel/struct.Sender.html#method.try_send) and returns an error if the queue is full. We already emit a metric if the queue is full, and that's not happening here. The hope is that the extra metric here gives us some clue for what the problem is. Metric graphs: <img width="1197" alt="image" src="https://github.com/rust-lang/crater/assets/5047365/34fac874-254f-4a91-b75a-4d2d9e25aea0"> <img width="1015" alt="image" src="https://github.com/rust-lang/crater/assets/5047365/d21ea685-56ef-49bf-943b-6dbe2648f336">
- Loading branch information