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

Changed metrics.Meter to metrics.Timer #817

Merged
merged 7 commits into from
Dec 14, 2020

Conversation

ehnuje
Copy link
Contributor

@ehnuje ehnuje commented Dec 11, 2020

Proposed changes

  • As the result of metrics.Meter might be distorted by the rate of data entered, change metrics.Meter to metrics.Timer, which is designed to collect duration metrics.

Timers capture the duration and rate of events. - metrics package description

  • Timer.Mean() is exported with the original metric name and 0.5, 0.75, 0.95, 0.99, 0.999, 0.9999 percentile metrics are also exported with the suffixes "_0_5", "_0_75", "_0_95", "_0_99", "_0_999", "_0_9999"

Types of changes

Please put an x in the boxes related to your change.

  • Bugfix
  • New feature or enhancement
  • Others

Checklist

Put an x in the boxes that apply. You can also fill these out after creating the PR. If you're unsure about any of them, don't hesitate to ask. We're here to help! This is simply a reminder of what we are going to look for before merging your code.

  • I have read the CONTRIBUTING GUIDELINES doc
  • I have signed the CLA
  • Lint and unit tests pass locally with my changes ($ make test)
  • I have added tests that prove my fix is effective or that my feature works
  • I have added necessary documentation (if appropriate)
  • Any dependent changes have been merged and published in downstream modules

Related issues

  • Please leave the issue numbers or links related to this PR here.

Further comments

If this is a relatively large or complex change, kick off the discussion by explaining why you chose the solution you did and what alternatives you considered, etc...

aidan-kwon
aidan-kwon previously approved these changes Dec 11, 2020
KimKyungup
KimKyungup previously approved these changes Dec 11, 2020
jeongkyun-oh
jeongkyun-oh previously approved these changes Dec 11, 2020
@ehnuje
Copy link
Contributor Author

ehnuje commented Dec 11, 2020

I found that . is not allowed for the metric label.. I fixed it! PTAL.

KimKyungup
KimKyungup previously approved these changes Dec 11, 2020
aidan-kwon
aidan-kwon previously approved these changes Dec 11, 2020
jeongkyun-oh
jeongkyun-oh previously approved these changes Dec 11, 2020
@ehnuje
Copy link
Contributor Author

ehnuje commented Dec 11, 2020

@winnie-byun Could you please take a look?

joowon-byun
joowon-byun previously approved these changes Dec 11, 2020
Co-authored-by: Winnie (Joowon) <joowon7508@gmail.com>
@KimKyungup KimKyungup merged commit dfea5e4 into klaytn:dev Dec 14, 2020
@ehnuje ehnuje deleted the 1211-meter-to-timer branch December 22, 2020 04:00
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.

None yet

5 participants