-
Notifications
You must be signed in to change notification settings - Fork 828
[SCB-950] modify consumer producer metrics and add edge metrics #944
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
| import org.slf4j.Logger; | ||
| import org.slf4j.LoggerFactory; | ||
|
|
||
| public class MeterDetailStatisticsModel { |
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.
why need this model?
enum the stages, just like the old logic, seems simpler?
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.
well. the data structure is different with before.
for example:
old:
rest.200:
xx xxx xx xx sayHi
xxx xx xx xx sayHello
rest.400:
xx xxx xx xx sayHi
xxx xx xx xx sayHello
now:
sayHi:
rest200:
xx xx xxx
rest400:
xx xx xxx
sayHello:
rest200:
xx xx xxx
rest400:
xx xx xxx
Hence, I have to load all data, And then restructure it
| } | ||
| sb.append(String.format(SIMPLE_HEADER, "edge")); | ||
| //clear old data | ||
| MeterStatisticsManager.statisticsOperationMap.clear(); |
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.
why need global variable?
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.
I just use it to load data temporarily as I need restructure the data
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.
I have removed the global variable
Follow this checklist to help us incorporate your contribution quickly and easily:
[SCB-XXX] Fixes bug in ApproximateQuantiles, where you replaceSCB-XXXwith the appropriate JIRA issue.mvn clean installto make sure basic checks pass. A more thorough check will be performed on your pull request automatically.