Skip to content

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

Merged
zzzckck merged 1 commit intobnb-chain:developfrom
zlacfzy:fix_rpc_metrics
Dec 21, 2023
Merged

rpc: fix ns/µs mismatch in metrics (#28649)#2095
zzzckck merged 1 commit intobnb-chain:developfrom
zlacfzy:fix_rpc_metrics

Conversation

@zlacfzy
Copy link
Copy Markdown
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
@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