Skip to content

fix: correct metrics label in requestPreVote handler#665

Merged
tgross merged 1 commit intohashicorp:mainfrom
specula-org:fix/prevote-metrics-label
Mar 13, 2026
Merged

fix: correct metrics label in requestPreVote handler#665
tgross merged 1 commit intohashicorp:mainfrom
specula-org:fix/prevote-metrics-label

Conversation

@Qian-Cheng-nju
Copy link
Contributor

The requestPreVote handler reuses the metrics key "requestVote" from copy-paste in #530. This causes pre-vote RPC latency to be mixed into the raft.rpc.requestVote metric.

Fix: change to "requestPreVote" to match the pattern used by all other RPC handlers.

@Qian-Cheng-nju Qian-Cheng-nju requested review from a team as code owners February 11, 2026 10:24
@hashicorp-cla-app
Copy link

hashicorp-cla-app bot commented Feb 11, 2026

CLA assistant check
All committers have signed the CLA.

Copy link
Member

@tgross tgross left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@tgross
Copy link
Member

tgross commented Feb 11, 2026

@Qian-Cheng-nju can we get you to sign the CLA as well?

@Qian-Cheng-nju
Copy link
Contributor Author

Qian-Cheng-nju commented Feb 11, 2026

@tgross Thanks for the heads up! I've just signed the CLA.

@Qian-Cheng-nju
Copy link
Contributor Author

Hi @tgross, just checking in on this one — the CLA is signed and your review is approved. Is there anything else needed from my side to get this merged? Happy to make any changes if needed. Thanks!

@tgross
Copy link
Member

tgross commented Mar 13, 2026

Sorry for the delay @Qian-Cheng-nju. I had to get merge rights sorted out. Done!

@tgross tgross merged commit 10dcdbf into hashicorp:main Mar 13, 2026
5 of 9 checks passed
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