-
Notifications
You must be signed in to change notification settings - Fork 3.8k
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
Colocate auth logging with auth metric for consistency #83597
Conversation
that's cool but it looks like it needs a test |
I'm more convinced moving the place where we record the graph measurement would be correct
The issue with doing things in the for loop of pgwire.serveImpl is that the code will only be executed when the server receives the first command that is sent after the connection is fully set up. |
Are there test examples that check log and metric output that I can look at? |
could you add a i also am not too sure how to test this... |
refs #83224 Release note (bug fix): Move connection OK log and metric to same location after auth completes for consistency. This resolves an inconsistency (see linked isssue) in the DB console where the log and metric did not match.
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 from my end, but try asking one of the observability teams for ideas on how to test this. if you can't find anything, feel free to merge
bors r=rafiss |
Build succeeded: |
Encountered an error creating backports. Some common things that can go wrong:
You might need to create your backport manually using the backport tool. error creating merge commit from 1ebd411 to blathers/backport-release-21.2-83597: POST https://api.github.com/repos/cockroachdb/cockroach/merges: 409 Merge conflict [] you may need to manually resolve merge conflicts with the backport tool. Backport to branch 21.2.x failed. See errors above. 🦉 Hoot! I am a Blathers, a bot for CockroachDB. My owner is otan. |
refs #83224
Release note (bug fix): Move connection OK log and metric to same location
after auth completes for consistency. This resolves an inconsistency
(see linked isssue) in the DB console where the log and metric did not match.