how to enable gRPC access log(request log) at server side?

1,179 views
Skip to first unread message

bigheadgp bigheadgp

unread,
Feb 26, 2017, 11:09:20 AM2/26/17
to etcd-dev
on etcd 3.1.1,  start  with etcd --debug=true does not enable any client access log when using by gRPC.

checked gRPC document, it looks like grpc employ trace by golang.org/x/net/trace, but checked etcd's code in etcd.go

func startEtcdOrProxyV2() {

grpc.EnableTracing = false
...

by modified the above false to true and the rebuild, I can still can not access the trace by /debug/requests,

so How can we enable client's access log (i.e. request url, args, response status, response size etc) with gRPC?

anthony...@coreos.com

unread,
Feb 27, 2017, 12:31:44 PM2/27/17
to etcd-dev
There's no way to enable it at the moment. I submitted a PR (https://github.com/coreos/etcd/pull/7384) to have it activated with `--debug`. Thanks for reporting this!
Reply all
Reply to author
Forward
0 new messages