Граф коммитов

19 Коммитов

Автор SHA1 Сообщение Дата
Aditya Sharma 47611bca39 goimports -local vitess.io/vitess -w .
Signed-off-by: Aditya Sharma <git@adi.run>
2021-01-04 18:27:04 -05:00
Aditya Sharma c9b6d608f7 run go fix ./...
Signed-off-by: Aditya Sharma <git@adi.run>
2021-01-01 13:29:32 -05:00
yuxiaobo 03e83d6c30 add license in /go file
Signed-off-by: yuxiaobo <yuxiaobogo@163.com>
2019-10-21 22:30:02 +08:00
Michael Demmer 4c5c2f8de2 replace the logstats RemoteAddr with a more inclusive CallInfo
Previously, the gRPC method was not included in the tablet query logs
which made debugging an ExecuteBatch vs Execute issue challenging.

To address this, replace the existing RemoteAddr hook with the more
generic CallInfo.Text() result that includes both the remote addr and the
method in the case of gRPC.

Signed-off-by: Michael Demmer <mdemmer@slack-corp.com>
2018-12-04 21:15:58 -08:00
Sugu Sougoumarane 6a807133d8
Merge pull request #4153 from tinyspeck/mysql-server-callinfo
add a callinfo implementation for the mysql server protocol
2018-08-24 14:04:32 -07:00
Michael Demmer d0ff5a9a85 add a callinfo implementation for the mysql server protocol
Building off the analogous structure for GRPC, include a callinfo
implementation so that query logs and debug output in vtgate includes
context about the caller.

Signed-off-by: Michael Demmer <mdemmer@slack-corp.com>
2018-08-23 07:56:40 -07:00
Michael Demmer 78a5a74a8b rework the grpc callinfo to include the peer remote address
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>
2018-08-23 07:11:08 -07:00
Michael Berlin 7e373f2de3 callinfo: Switch to the new grpc.Method() function to find out the gRPC method of an RPC's context.
The previous way was internal only and deprecreated.

Therefore, gRPC Go team provided this new Method() function for us.

It is available since gRPC Go 1.11.2: https://github.com/grpc/grpc-go/releases/tag/v1.11.2
(I upgraded the vendored package in a previous commit.)

Signed-off-by: Michael Berlin <mberlin@google.com>
2018-04-09 13:14:14 -07:00
Sugu Sougoumarane 7af23e1dde license: BSD->Apache v2.0
Please refer to #2694 and #2670 for motivation and reasoning for
this change.

I've tried to follow best practice in inserting the copyright
headers. In other open source projects, not all files carry
the notice. For example documentation doesn't. I've followed
similar ground rules.

I did not change the php because there is a separate LICENSE
file there by Pixel Federation. We'll first need to notify
them our intent before changing anything there.

As for the presubmit check, it's going to be non-trivial
because of the number of exceptions, like file types,
directories and generated code. So, it will have to be
a separate project.
2017-05-06 00:38:56 -07:00
Sugu Sougoumarane 9c4032ed34 tabletserver: tabletenv and connpool packages
Upgraded tabletstats to tabletenv. It will contain all tabletserver
environment related vars and types.
* Config is now a global read-only var in tabletenv, which all other
packages can reference.
* LogStats has also moved into tabletenv, because it's used everywhere.
* TabletError has a temporary home there, but it will eventually be
merged into vterrors. Moving there right now causes circular
dependency errors.
* connpool is its own package.
2017-02-06 18:34:47 -08:00
Alain Jobart 9363a3ecbe No more rpcplus / rpcwrap.
Go server cannot serve gorpc any more.
2016-03-16 10:53:03 -07:00
Alain Jobart 1017ce6cfc Removing SASL over BSON support. 2015-09-01 09:15:37 -07:00
Alain Jobart 390bd77e42 WIP: proto3 gRPC query service client and server.
(It's a lot of changes, my WS is acting up, so committing this).
2015-06-16 11:44:24 -07:00
Ammar Aijazi ee1d18dfed Use CallInfo in VTGate, and restore context HTML to vtgate status page 2015-04-14 19:14:38 -07:00
Liang Guo a71e7dcd22 Use 0 as the context key 2015-04-14 09:07:57 -07:00
Liang Guo 5799ae991a Make CallInfo an interface, and generate fields on demand. 2015-04-13 22:32:28 -07:00
Alain Jobart 5af47a5d25 Updating CallInfo to be more in line with Context API.
And remove all the cast madness.
2015-03-09 07:37:37 -07:00
Anthony Yeh 04f9e79bbc Rewrite imports for golang subrepositories.
As per this announcement:
https://groups.google.com/forum/m/#!msg/golang-announce/eD8dh3T9yyA/HDOEU_ZSmvAJ
2014-12-14 12:48:10 -08:00
Peter Lobsinger 3dc6889ad3 Add generic-context accessors.
Create a helper-module callinfo for pulling call-related information out
of contexts, an rpcwrap instantiation of this logic, and some rpcwrap
helpers to pull rpcwrap info out of contexts.
2014-11-10 12:29:13 -08:00