-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
stats: convert Dynamo stats to use StatName interface #7634
Conversation
Signed-off-by: Joshua Marantz <[email protected]>
Signed-off-by: Joshua Marantz <[email protected]>
Signed-off-by: Joshua Marantz <[email protected]>
Signed-off-by: Joshua Marantz <[email protected]>
Signed-off-by: Joshua Marantz <[email protected]>
Signed-off-by: Joshua Marantz <[email protected]>
/assign @mattklein123 Feel free to reassign -- just looks like you're the one of the few people who's touched the logic in here. |
Signed-off-by: Joshua Marantz <[email protected]>
…rs by string. Signed-off-by: Joshua Marantz <[email protected]>
OK this is ready for a look -- I removed dynamo_stats_filter from the whitelist established in #7573 . Feel free to push back on the potential lookup-by-name in the request-path if you think it's an issue, and we can discuss how to resolve. |
…he format message. Signed-off-by: Joshua Marantz <[email protected]>
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.
Thanks, cool stuff. Flushing out some comments from a first pass and then will take another look. Thank you!
/wait
} | ||
|
||
Stats::StatName DynamoStats::getStatName(const std::string& str) { | ||
// We have been presented with a string to when composing a stat. The Dynamo |
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.
can't parse. rephrase?
Signed-off-by: Joshua Marantz <[email protected]>
Signed-off-by: Joshua Marantz <[email protected]>
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.
Thanks, LGTM with 2 small comments.
/wait
Signed-off-by: Joshua Marantz <[email protected]>
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.
Nice, thanks.
Thanks for the review & catching some unneeded stuff. |
Description: I started off thinking I would try to knock off a bunch of the places where we compute stats by name in one go, but Dynamo deserves its own PR mostly; there's one unrelated file in it. If this goes in first we should remove the whitelist entry in #7573 and if that goes in first then we should merge that in and remove the entry before checking this one in.
This is another step toward resolving #4196 and enabling submission of #4980.
Risk Level: medium -- could introduce lock contention for stats associated with status-codes and table-names. This PR may need more work because of that. Note that #7008 offers a solution to this problem; it's just not clear yet whether it's worth the cost until we see perf traces.
Testing: //test/...
Docs Changes: n/a
Release Notes: n/a