-
Notifications
You must be signed in to change notification settings - Fork 4.4k
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
debug: use the new metrics stream in debug command #10399
Conversation
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 saw that this touch the debug part and I took a look, I really like how the stream API work. It make it easier to handle long running requests. As commented below I think we should also change the log API to work the same way.
I also had few comments/questions
460408a
to
26e7c37
Compare
I think the TODOs are resolved, and this should be ready for review |
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.
Looks good. I just had one question about an edge-case. Also, can we add a couple tests for this new endpoint?
Ya, good idea. The change itself is covered by the tests for the CLI, although I could probably improve the checks in that test as well. The underlying behaviour is tested in the |
To pickup new InMemSink.Stream method
fc24d64
to
421e23d
Compare
To remove the need to decode and re-encode in the CLI
421e23d
to
e58a074
Compare
Ok, I've rebased this PR and added a test for the HTTP endpoint, and improved the test coverage of the CLI. I think this is ready for another review. |
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.
software of the highest quality.. plus tests!
🍒 If backport labels were added before merging, cherry-picking will start automatically. To retroactively trigger a backport after merging, add backport labels and re-run https://circleci.com/gh/hashicorp/consul/416873. |
Related to #10320
Tested by running a dev agent and collecting a
consul debug
archive. All the metrics are indent formatted in themetrics.json
.TODO: