Add structure logging to Vitess#11960
Merged
frouioui merged 13 commits intovitessio:mainfrom Jan 25, 2023
EmadMokhtar:main
Merged
Add structure logging to Vitess#11960frouioui merged 13 commits intovitessio:mainfrom EmadMokhtar:main
frouioui merged 13 commits intovitessio:mainfrom
EmadMokhtar:main
Conversation
Signed-off-by: Emad Habib <ehabib@slack-corp.com>
Contributor
Review ChecklistHello reviewers! 👋 Please follow this checklist when reviewing this Pull Request. General
If a new flag is being introduced:
If a workflow is added or modified:
Bug fixes
Non-trivial changes
New/Existing features
Backward compatibility
|
Signed-off-by: Emad Habib <ehabib@slack-corp.com>
Signed-off-by: Emad Habib <ehabib@slack-corp.com>
Signed-off-by: Emad Habib <ehabib@slack-corp.com>
Signed-off-by: Emad Habib <ehabib@slack-corp.com>
GuptaManan100
approved these changes
Dec 20, 2022
Contributor
GuptaManan100
left a comment
There was a problem hiding this comment.
otherwise looks good to me
ajm188
reviewed
Dec 20, 2022
systay
reviewed
Dec 20, 2022
systay
reviewed
Dec 20, 2022
systay
reviewed
Dec 20, 2022
systay
reviewed
Dec 20, 2022
Signed-off-by: Emad Habib <ehabib@slack-corp.com>
Signed-off-by: Emad Habib <ehabib@slack-corp.com>
Contributor
Author
|
I applied all your comments |
systay
reviewed
Dec 21, 2022
systay
reviewed
Dec 24, 2022
systay
approved these changes
Dec 24, 2022
Signed-off-by: Emad Habib <ehabib@slack-corp.com>
systay
reviewed
Jan 9, 2023
GuptaManan100
approved these changes
Jan 10, 2023
Collaborator
|
Looks like |
Signed-off-by: Emad Habib <ehabib@slack-corp.com>
frouioui
approved these changes
Jan 11, 2023
Signed-off-by: Emad Habib <ehabib@slack-corp.com>
frouioui
added a commit
to planetscale/vitess
that referenced
this pull request
Feb 2, 2023
Signed-off-by: Florent Poinsard <florent.poinsard@outlook.fr>
3 tasks
frouioui
added a commit
that referenced
this pull request
Feb 2, 2023
3 tasks
timvaillancourt
pushed a commit
to slackhq/vitess
that referenced
this pull request
Mar 25, 2024
* Create a function to replace glog with PlanetScale log Signed-off-by: Emad Habib <ehabib@slack-corp.com> * Add test case for replacing glog Signed-off-by: Emad Habib <ehabib@slack-corp.com> * Remove one test Signed-off-by: Emad Habib <ehabib@slack-corp.com> * Add flag for PS Logger usage Signed-off-by: Emad Habib <ehabib@slack-corp.com> * Update the usage test files and replace _ with - for the flag Signed-off-by: Emad Habib <ehabib@slack-corp.com> * Apply code review comments Signed-off-by: Emad Habib <ehabib@slack-corp.com> * Add copyrights and release notes Signed-off-by: Emad Habib <ehabib@slack-corp.com> * Update the year in the copyrights Signed-off-by: Emad Habib <ehabib@slack-corp.com> * Fix typo Signed-off-by: Emad Habib <ehabib@slack-corp.com> * Empty Commit Signed-off-by: Emad Habib <ehabib@slack-corp.com> Signed-off-by: Emad Habib <ehabib@slack-corp.com>
Merged
4 tasks
timvaillancourt
added a commit
to slackhq/vitess
that referenced
this pull request
Mar 26, 2024
… (#270) * Add structure logging to Vitess (vitessio#11960) * Create a function to replace glog with PlanetScale log Signed-off-by: Emad Habib <ehabib@slack-corp.com> * Add test case for replacing glog Signed-off-by: Emad Habib <ehabib@slack-corp.com> * Remove one test Signed-off-by: Emad Habib <ehabib@slack-corp.com> * Add flag for PS Logger usage Signed-off-by: Emad Habib <ehabib@slack-corp.com> * Update the usage test files and replace _ with - for the flag Signed-off-by: Emad Habib <ehabib@slack-corp.com> * Apply code review comments Signed-off-by: Emad Habib <ehabib@slack-corp.com> * Add copyrights and release notes Signed-off-by: Emad Habib <ehabib@slack-corp.com> * Update the year in the copyrights Signed-off-by: Emad Habib <ehabib@slack-corp.com> * Fix typo Signed-off-by: Emad Habib <ehabib@slack-corp.com> * Empty Commit Signed-off-by: Emad Habib <ehabib@slack-corp.com> Signed-off-by: Emad Habib <ehabib@slack-corp.com> * github.com/planetscale/log v0.0.0-20221118170849-fb599bc35c50 Signed-off-by: Tim Vaillancourt <tim@timvaillancourt.com> * go mod tidy after rebase Signed-off-by: Tim Vaillancourt <tim@timvaillancourt.com> --------- Signed-off-by: Emad Habib <ehabib@slack-corp.com> Signed-off-by: Tim Vaillancourt <tim@timvaillancourt.com> Co-authored-by: Emad Mokhtar Elsayed Habib <emad.m.habib@gmail.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Description
The goal of this PR is to introduce the structure logging to Vitess. Vitess is using
glogas logger. So I decided to usenoglogand create drop-in replacement. I used PlanetScale log to replaceglogas internally it's zap log.The PR is also introducing a flag
structure_loggingwhere the user can choose to use structure logging or the default logging. The default value isFalseso the default is to use the current loggingglog.Related Issue(s)
#11613
Checklist
Deployment Notes