-
Notifications
You must be signed in to change notification settings - Fork 29
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
feat: expose context to debug logger #797
Conversation
Thanks for the PR @torkelrogstad! Will take a look shortly 😄 |
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.
Overall, LGTM. I'll let @enocom also review as he implemented the original debug logging feature.
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.
One minor nit on wording. Otherwise, this looks great. Thanks for this change.
debug/debug.go
Outdated
// Logger is the interface used for debug logging. By default, it is unused. | ||
// | ||
// Deprecated: use ContextLogger instead. |
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.
Let's say "Prefer ContextLogger" or similar. We'll keep letting people use Logger if they want.
Callers may now provide a context to correlate logs with trace IDs in their implementation of the interface. This is a port of GoogleCloudPlatform/cloud-sql-go-connector#797
Co-authored-by: Jack Wotherspoon <jackwoth@google.com>
Callers may now provide a context to correlate logs with trace IDs in their implementation of the interface. This is a port of GoogleCloudPlatform/cloud-sql-go-connector#797
Callers may now provide a context to correlate logs with trace IDs in their implementation of the interface. This is a port of GoogleCloudPlatform/cloud-sql-go-connector#797
Thanks for the quick merge! |
Implementation of my feature request from #796