-
Notifications
You must be signed in to change notification settings - Fork 4.5k
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
examples: add an example to illustrate the usage of stats handler #5657
Conversation
Changes to be committed: new file: examples/features/stats_monitoring/README.md new file: examples/features/stats_monitoring/client/main.go new file: examples/features/stats_monitoring/server/main.go
|
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.
Apologize for the delay in the review.
Changes to be committed: modified: examples/features/stats_monitoring/client/main.go modified: examples/features/stats_monitoring/server/main.go
Hi @easwars, Thanks for the review. I made some trivial changes and added usage of
The example prints custom messages for different A plus point is: a single package (implementation) of Let me know if a general print statement would be enough (instead of the switch case block) so that I can implement the same changes on the server code and extract the |
This PR is labeled as requiring an update from the reporter, and no update has been received after 6 days. If no update is provided in the next 7 days, this issue will be automatically closed. |
@Yash-Handa : Yes, a general print statement should be good enough. Thank you for doing this. |
I saw a commit recently on this PR. Please let me know when this is ready to looked at again. Thanks for doing this. |
logs. Changes to be committed: modified: examples/features/stats_monitoring/README.md modified: examples/features/stats_monitoring/client/main.go modified: examples/features/stats_monitoring/server/main.go new file: examples/features/stats_monitoring/statshandler/handler.go
Hi @easwars, apologies for the delay. Updated the example with the following:
Let me know if further changes are required : ) |
This PR is labeled as requiring an update from the reporter, and no update has been received after 6 days. If no update is provided in the next 7 days, this issue will be automatically closed. |
@dfawley : For second set of eyes. Thank you. |
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 mostly good, but I have a few comments on text and comments.
Changes to be committed: modified: examples/features/stats_monitoring/README.md modified: examples/features/stats_monitoring/statshandler/handler.go
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 except for the long lines in the README.
cc @temawi as FYI. |
Changes to be committed: modified: examples/features/stats_monitoring/README.md
Thanks for the contribution! |
RELEASE NOTES: