-
Notifications
You must be signed in to change notification settings - Fork 967
feat: add some metrics about RT #2340
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
Conversation
pls fix the ci |
Codecov Report
@@ Coverage Diff @@
## main #2340 +/- ##
==========================================
+ Coverage 44.10% 44.23% +0.13%
==========================================
Files 294 294
Lines 17890 18018 +128
==========================================
+ Hits 7890 7971 +81
- Misses 9161 9201 +40
- Partials 839 846 +7
... and 1 file with indirect coverage changes 📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
|
Kudos, SonarCloud Quality Gate passed!
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Lgtm, thanks!
The minimum response time (min rt) metrics for different labels are maintained using
sync.Map
. The purpose of labels is to differentiate between different provider-consumer RPC invocation paths. For example, if provider A offers a service and is called by two consumers, Consumer A and Consumer B, the minimum response time for each path needs to be tracked separately.Please provide suggestions for the code organization, naming, and implementation approach for this PR.
使用
sync.Map
对于不同 label 的最小响应时间(min rt)指标进行维护。label 的作用是区分不同的 provider-consumer RPC 调用链路,比如 provider A 提供的服务被 consumer A 和 Consumer B 两个消费者去调用,则两条链路的最小响应时间需要分别统计。请对于本 PR 代码组织方式、命名、实现思路提出建议。