Skip to content
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

rpc: fix ns/µs mismatch in metrics (#28649) #2095

Merged
merged 1 commit into from
Dec 21, 2023

Conversation

zlacfzy
Copy link
Contributor

@zlacfzy zlacfzy commented Dec 21, 2023

Description

The rpc/duration/all meter was in nanoseconds, the individual meter in microseconds. This PR changes it so both of them use nanoseconds.

Rationale

Example

image

After Fix
image

Changes

Notable changes:

  • metrics/timer.go
  • rpc/metrics.go

The rpc/duration/all meter was in nanoseconds, the individual meter in microseconds.
This PR changes it so both of them use nanoseconds.
@zlacfzy zlacfzy changed the base branch from master to develop December 21, 2023 08:09
@zzzckck zzzckck merged commit 9badb15 into bnb-chain:develop Dec 21, 2023
5 checks passed
@zlacfzy zlacfzy deleted the fix_rpc_metrics branch December 21, 2023 11:24
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.

4 participants