Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: do not create metrics contention from background task permit (#7730
) The background task loop permit metrics do two of `with_label_values` very often. Change the codepath to cache the counters on first access into a `Lazy` with `enum_map::EnumMap`. The expectation is that this should not fix for metric collection failures under load, but it doesn't hurt. Cc: #7161
- Loading branch information
4d8a10a
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
3141 tests run: 2996 passed, 0 failed, 145 skipped (full report)
Code coverage* (full report)
functions
:31.4% (6330 of 20163 functions)
lines
:47.3% (47807 of 101040 lines)
* collected from Rust tests only
4d8a10a at 2024-05-13T16:15:17.044Z :recycle: