-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
vtorc: Switch to Vitess stats #15948
vtorc: Switch to Vitess stats #15948
Conversation
This moves the stats setup to the internal Vitess stats package instead of another external dependency. With this change we can remove the external dependency. Signed-off-by: Dirkjan Bussink <[email protected]>
Review ChecklistHello reviewers! 👋 Please follow this checklist when reviewing this Pull Request. General
Tests
Documentation
New flags
If a workflow is added or modified:
Backward compatibility
|
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #15948 +/- ##
==========================================
- Coverage 68.44% 68.42% -0.03%
==========================================
Files 1562 1562
Lines 197055 197040 -15
==========================================
- Hits 134876 134818 -58
- Misses 62179 62222 +43 ☔ View full report in Codecov by Sentry. |
) | ||
|
||
var analysisChangeWriteCounter = metrics.NewCounter() | ||
var analysisChangeWriteCounter = stats.NewCounter("analysis.change.write", "Number of times analysis has changed") |
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.
Should also not deprecate this old style naming of stats and make them consistent with Vitess-style naming?
@GuptaManan100 WDYT?
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.
@deepthi do you mean the .
delimiter? If so I agree. I think most Vitess stats are _
separated
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.
@deepthi I was explicitly here opting for not changing anything yet here, to not trigger a rename of metrics. That's not backwards compatible then so we'd need to probably emit both for a while and then remove the old one?
I was here just focussed on a little cleanup. I think if we want to change the name, that's something for a separate PR?
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 think it's a good idea to make it consistent.
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.
we'd need to probably emit both for a while and then remove the old one
That's what deprecation means for stats. We start emitting new stats along with old ones for 1 release, delete the old ones in a follow up release, and document in release notes of both releases.
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!
Signed-off-by: Dirkjan Bussink <[email protected]>
Signed-off-by: Dirkjan Bussink <[email protected]> Co-authored-by: Dirkjan Bussink <[email protected]>
This moves the stats setup to the internal Vitess stats package instead of another external dependency.
With this change we can remove the external dependency.
Checklist