Skip to content

Conversation

@suchapalaver
Copy link
Collaborator

@suchapalaver suchapalaver commented Dec 6, 2025

Summary

  • Clean up allocation-level gauges (UNAGGREGATED_FEES_BY_VERSION, INVALID_RECEIPT_FEES) when
    allocation actors terminate
  • Clean up sender-level gauges (SENDER_DENIED, ESCROW_BALANCE, SENDER_FEE_TRACKER, MAX_FEE_PER_SENDER, RAV_REQUEST_TRIGGER_VALUE) in SenderAccount post_stop

This fixes stale gauge values that persisted in Prometheus after allocations closed or senders were removed, which could
cause misleading metric cardinality growth and incorrect dashboard readings.


Joseph Livesey joseph@semiotic.ai

…tion stop

   The UNAGGREGATED_FEES_BY_VERSION gauge was added in the
   Horizon V2 TAP
   support commit (8c8dd2b) but was missing cleanup when
   SenderAllocation
   actors stop. This caused stale gauge values to persist for
   closed
   allocations, affecting Prometheus metrics accuracy.

   Add remove_label_values call in ActorTerminated handler to
   clean up
   the metric with the correct version label (v1/v2) based on
   sender_type.
@coveralls
Copy link

Pull Request Test Coverage Report for Build 19989584379

Details

  • 123 of 131 (93.89%) changed or added relevant lines in 1 file are covered.
  • 3 unchanged lines in 1 file lost coverage.
  • Overall coverage increased (+0.3%) to 63.885%

Changes Missing Coverage Covered Lines Changed/Added Lines %
crates/tap-agent/src/agent/sender_account.rs 123 131 93.89%
Files with Coverage Reduction New Missed Lines %
crates/watcher/src/lib.rs 3 85.42%
Totals Coverage Status
Change from base Build 19943819085: 0.3%
Covered Lines: 9807
Relevant Lines: 15351

💛 - Coveralls

@suchapalaver
Copy link
Collaborator Author

Closing in favor of #888

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants