Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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
internal/stats: Add metrics recorder list and usage in ClientConn #7428
internal/stats: Add metrics recorder list and usage in ClientConn #7428
Changes from 1 commit
dc37567
6c69fc7
e410855
b9fedbf
619b20e
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
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.
IMO delete the logger now and call
panic(fmt.Sprintf)
here.Also if we pass the descriptor let's print the metric name with
%q
as well. Maybe lose thegot, want
formatting which I believe is unique to Go test assertions?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.
Got rid of got, want. Recorded the metric name with %q from desc.
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.
Oh I didn't mean to remove the counts.. Just to turn it into a more english-y thing than a Go test error message. E.g.
Like
Received %d labels in call to record metric %q, but expected %d
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.
Ah ok noted switched to that.
This file was deleted.
Check warning on line 72 in internal/testutils/stats/test_metrics_recorder.go
internal/testutils/stats/test_metrics_recorder.go#L64-L72
Check warning on line 93 in internal/testutils/stats/test_metrics_recorder.go
internal/testutils/stats/test_metrics_recorder.go#L93
Check warning on line 97 in internal/testutils/stats/test_metrics_recorder.go
internal/testutils/stats/test_metrics_recorder.go#L97
Check warning on line 115 in internal/testutils/stats/test_metrics_recorder.go
internal/testutils/stats/test_metrics_recorder.go#L115
Check warning on line 119 in internal/testutils/stats/test_metrics_recorder.go
internal/testutils/stats/test_metrics_recorder.go#L119
Check warning on line 137 in internal/testutils/stats/test_metrics_recorder.go
internal/testutils/stats/test_metrics_recorder.go#L137
Check warning on line 141 in internal/testutils/stats/test_metrics_recorder.go
internal/testutils/stats/test_metrics_recorder.go#L141
Check warning on line 159 in internal/testutils/stats/test_metrics_recorder.go
internal/testutils/stats/test_metrics_recorder.go#L159
Check warning on line 163 in internal/testutils/stats/test_metrics_recorder.go
internal/testutils/stats/test_metrics_recorder.go#L163
Check warning on line 180 in internal/testutils/stats/test_metrics_recorder.go
internal/testutils/stats/test_metrics_recorder.go#L180
Check warning on line 184 in internal/testutils/stats/test_metrics_recorder.go
internal/testutils/stats/test_metrics_recorder.go#L184
Check warning on line 208 in internal/testutils/stats/test_metrics_recorder.go
internal/testutils/stats/test_metrics_recorder.go#L207-L208
Check warning on line 211 in internal/testutils/stats/test_metrics_recorder.go
internal/testutils/stats/test_metrics_recorder.go#L211