-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
* [PLAT-870] Problem: stats for types of requests not distinct Solution: Account for their number and latency distinctly. With the Prometheus Statsd exporter in place, we have real histograms that are fed by `stats_timer`, which means we can ditch related calls to `stats_counter` and we can just reconfigure the bucket widths in the exporter config rather than having a const that says how long is too long. We instrument in `print_errors` because it has the error and latency information as well as the function name. To that end, I've changed the function name passed to `process_status` to more closely align with what someone looking at logs or timeseries might understand because 1) that's easier than more extensive refactoring 2) the other people who care are the ones reading the source and they can just as easily search for calls to `print_errors` * move the timers to process_status to observe successes also * counters for sainted read/write
- Loading branch information
1 parent
b3fa1ee
commit 48961c0
Showing
5 changed files
with
34 additions
and
36 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters