[HbarLimitService] Replace updateAverageAmountSpentPerSubscriptionTier with Efficient Metrics Collection #3709
Labels
enhancement
New feature or request
Team Promoted
Issues to be triaged and discussed by committers, maintainers, to be worked on the following sprint
Problem
The
updateAverageAmountSpentPerSubscriptionTier
method inHbarLimitService
generates excessive logs when the database contains many HBAR spending plans. It retrieves all active plans for a subscription tier, calculates the average amount spent, and updates a Prometheus gauge.When there are numerous accounts, this process:
Proposed Solution
updateAverageAmountSpentPerSubscriptionTier
method entirelyBenefits
Implementation Notes
averageSpendingPlanAmountSpentGauge
should be replaced with a new gauge for tracking total amount spentThe text was updated successfully, but these errors were encountered: