-
Notifications
You must be signed in to change notification settings - Fork 590
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
Create generic statsReporter in metrics package #8084
base: main
Are you sure you want to change the base?
Conversation
Skipping CI for Draft Pull Request. |
…ariables and methods for broker filter's stat_reporter - 1
@Leo6Leo can you rebase? |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: Leo6Leo The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
/cc @creydr I re-write the statsReport to make it more generic and moved it to the metrics package by following the suggestions you left here. Please let me know if this is on the right track, then I will proceed changing the statsReporter for channel, broker ingress... to use the new generic statsReporter. |
@Leo6Leo can you check on the failing tests? |
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 guess this should be moved to the metrics package
@@ -741,23 +742,23 @@ func (r *responseWriterWithInvocationsCheck) WriteHeader(statusCode int) { | |||
} | |||
|
|||
type mockReporter struct { |
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.
wouldn't be the metrics package a better place for this?
@@ -67,35 +63,30 @@ var ( | |||
// go.opencensus.io/tag/validate.go. Currently those restrictions are: | |||
// - length between 1 and 255 inclusive | |||
// - characters are printable US-ASCII | |||
triggerFilterTypeKey = tag.MustNewKey(eventingmetrics.LabelFilterType) | |||
triggerFilterTypeKey = tag.MustNewKey(LabelFilterType) |
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 do you keep broker/trigger specific vars in this package?
@Leo6Leo: The following tests failed, say
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. I understand the commands that are listed here. |
Proposed Changes
Pre-review Checklist
Release Note
Docs