New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix withdrawal gating double usage of metrics name for two different types of counters. #972
Conversation
…types of counters.
WalkthroughThe update involves the introduction of a new metric key and the renaming of an existing metric to reflect its function more accurately. The focus is on tracking the latency of a specific process, indicated by the addition of Changes
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (invoked as PR comments)
Additionally, you can add CodeRabbit Configration File (
|
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.
Review Status
Actionable comments generated: 0
Configuration used: CodeRabbit UI
Files selected for processing (2)
- protocol/lib/metrics/metric_keys.go (2 hunks)
- protocol/x/clob/keeper/deleveraging.go (1 hunks)
Additional comments: 3
protocol/lib/metrics/metric_keys.go (2)
- 24-24: The new metric key
GateWithdrawalsIfNegativeTncSubaccountSeen
follows the guidelines provided for metric keys naming conventions.- 54-54: The new metric key
GateWithdrawalsIfNegativeTncSubaccountSeenLatency
is correctly named with a suffix indicating the unit of measurement (Latency
), adhering to the guidelines.protocol/x/clob/keeper/deleveraging.go (1)
- 198-198: The metric name in the
GateWithdrawalsIfNegativeTncSubaccountSeen
function has been correctly updated toGateWithdrawalsIfNegativeTncSubaccountSeenLatency
, reflecting the changes made in themetric_keys.go
file.
Changelist
Fix withdrawal gating double usage of metrics name for two different types of counters.
Test Plan
Manually test on persistent environment.
Author/Reviewer Checklist
state-breaking
label.indexer-postgres-breaking
label.PrepareProposal
orProcessProposal
, manually add the labelproposal-breaking
.feature:[feature-name]
.backport/[branch-name]
.refactor
,chore
,bug
.