-
Notifications
You must be signed in to change notification settings - Fork 5
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
Add arch in wave metrics #791
base: master
Are you sure you want to change the base?
Add arch in wave metrics #791
Conversation
Signed-off-by: munishchouhan <[email protected]>
Signed-off-by: munishchouhan <[email protected]>
@munishchouhan what's missing to have this ready to review? |
unit test and testing |
Fair enough |
Signed-off-by: munishchouhan <[email protected]>
Signed-off-by: munishchouhan <[email protected]>
Signed-off-by: munishchouhan <[email protected]>
This is escalating in something much bigger than expected. Is it really needed a new set of endpoints? |
@CompileStatic | ||
@Filter(["/v1alpha2/metrics/**", "/v1alpha3/metrics/**"]) | ||
@Requires(property = 'wave.metrics.enabled', value = 'true') | ||
class MetricsQueryParamValidationFilter implements HttpServerFilter { |
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 a filter for this?
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.
this validation function is common for all the endpoints in this controller, so instead of calling for every endpoint
I created this filter to reduce boilerplate code
currently, these APIs are being called periodically in product analytics |
Signed-off-by: munishchouhan <[email protected]>
Signed-off-by: munishchouhan <[email protected]>
Signed-off-by: munishchouhan <[email protected]>
This PR will add arch in wave metrics