Skip to content

rework the grpc callinfo to include the peer remote address#4151

Merged
sougou merged 1 commit intovitessio:masterfrom
tinyspeck:grpc-peer-callinfo
Aug 24, 2018
Merged

rework the grpc callinfo to include the peer remote address#4151
sougou merged 1 commit intovitessio:masterfrom
tinyspeck:grpc-peer-callinfo

Conversation

@demmer
Copy link
Copy Markdown
Member

@demmer demmer commented Aug 23, 2018

Since grpc has a convenient method for getting the peer information
from the context, add the necessary hooks to extract this for the
vitess Callinfo interface so it shows up in query logs and debug
messages.

Signed-off-by: Michael Demmer mdemmer@slack-corp.com

Since grpc has a convenient method for getting the peer information
from the context, add the necessary hooks to extract this for the
vitess Callinfo interface so it shows up in query logs and debug
messages.

Signed-off-by: Michael Demmer <mdemmer@slack-corp.com>
Copy link
Copy Markdown
Contributor

@sougou sougou left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There's already a Remote function. How convenient :).

@sougou sougou merged commit 2c7bdd4 into vitessio:master Aug 24, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants