Skip to content
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

etcdserver: cherry pick of #9990 to release-3.2 #10025

Conversation

jingyih
Copy link
Contributor

@jingyih jingyih commented Aug 18, 2018

Cherry pick of #9990 to release-3.2.

This is to improve debuggability of etcd release-3.2. Added a grpc interceptor to log information on incoming requests to etcdserver.

During backporting, the following two dependencies are removed from the original PR:

  1. removed dependency on zap logger. Use capnslog for logging.
  2. removed dependency on grpc_middleware. Interceptors are chained manually instead.

This backporting also includes #10021. If debug level is disabled, skip logUnaryRequestStats() to avoid potential performance degradation.

etcdserver.

To improve debuggability of etcd v3. Added a grpc interceptor to log
info on incoming requests to etcd server. The log output includes remote
client info, request content (with value field redacted), request
handling latency, response size, etc.

Dependency on zap logger and grpc_middleware is removed during
backporting.

Added checking in logging interceptor. If debug level is disabled, skip
logUnaryRequestStats() to avoid potential performance degradation. (PR etcd-io#10021)
Copy link
Contributor

@gyuho gyuho left a comment

Choose a reason for hiding this comment

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

lgtm /cc @jpbetz

@jingyih jingyih changed the title etcdserver: add grpc interceptor to log info on incoming request to etcdserver. etcdserver: Automated cherry pick of #9990 to release-3.2 Aug 18, 2018
@jingyih jingyih changed the title etcdserver: Automated cherry pick of #9990 to release-3.2 etcdserver: cherry pick of #9990 to release-3.2 Aug 18, 2018
@jpbetz
Copy link
Contributor

jpbetz commented Aug 20, 2018

lgtm

@jpbetz jpbetz merged commit 73b1a2b into etcd-io:release-3.2 Aug 20, 2018
@jingyih jingyih deleted the automated-cherry-pick-of-#9990-origin-release-3.2-1534373481 branch September 7, 2019 07:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants