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.1 #10030

Merged

Conversation

jingyih
Copy link
Contributor

@jingyih jingyih commented Aug 20, 2018

Cherry pick of #9990 to release-3.1.

This is to improve debuggability of etcd release-3.1. 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.

/cc @gyuho @jpbetz

Jingyi Hu added 2 commits August 20, 2018 13:54
…tcdserver.

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)
etcdserver

To improve debuggability of etcd v3.1. 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 thanks! /cc @jpbetz

@jpbetz
Copy link
Contributor

jpbetz commented Aug 20, 2018

lgtm!

@jpbetz jpbetz merged commit 2c616b0 into etcd-io:release-3.1 Aug 20, 2018
@jingyih jingyih deleted the cherry-pick-of-#9990-origin-release-3.1 branch September 7, 2019 07:07
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