Skip to content

fix: correct metrics label in requestPreVote handler#665

Open
Qian-Cheng-nju wants to merge 1 commit intohashicorp:mainfrom
specula-org:fix/prevote-metrics-label
Open

fix: correct metrics label in requestPreVote handler#665
Qian-Cheng-nju wants to merge 1 commit intohashicorp:mainfrom
specula-org:fix/prevote-metrics-label

Conversation

@Qian-Cheng-nju
Copy link

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
Author

Qian-Cheng-nju commented Feb 11, 2026

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

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