Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Tweak performance for Prometheus scraping endpoint
Reduce the number of times capacity growth is needed inside the StringWriter. A typical default SpringBoot Prometheus page has more than 11k characters. Best performance results when no capacity growth is needed at all, so base it on previous metrics page size plus some room for possible extra metric info. See gh-30085
- Loading branch information