Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
throttle backend metrics to once every 5 seconds (#841)
Instead of passing through backend metrics every second - let's just take one metrics event every 5 seconds. <!-- ELLIPSIS_HIDDEN --> ---- > [!IMPORTANT] > Throttle backend metrics processing in `metrics_loop` to once every 5 seconds using `METRICS_INTERVAL`. > > - **Behavior**: > - Throttle backend metrics processing in `metrics_loop` in `metrics.rs` to once every 5 seconds using `METRICS_INTERVAL`. > - Metrics are skipped if processed within the last 5 seconds. > - **Constants**: > - Add `METRICS_INTERVAL` constant set to 5 seconds in `metrics.rs`. > > <sup>This description was created by </sup>[<img alt="Ellipsis" src="https://img.shields.io/badge/Ellipsis-blue?color=175173">](https://www.ellipsis.dev?ref=jamsocket%2Fplane&utm_source=github&utm_medium=referral)<sup> for 3d25cc1. It will automatically update as commits are pushed.</sup> <!-- ELLIPSIS_HIDDEN -->
- Loading branch information