-
Notifications
You must be signed in to change notification settings - Fork 9.8k
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
Support client configuration via environmental variables #12785
Comments
It was not accidental. I think that the flag had nearly no control in v3.4. The flag was driving only global clientv3.lg logger: Lines 50 to 53 in 2702f9e
That was used only in 1 place. All other logging was done through class-level logger ( Line 430 in 2702f9e
So I think that this flag should get replaced by generic mechanism of passing clientv3 config. |
It can be used to configure client-side logging level configurable (e.g.,
will help us debug gRPC layer logging (e.g., Now, we cannot override this (unless we use Lines 332 to 340 in 63c5170
We should add |
The custom logging level can be configured using client-config & zap-config (that is JSON serializable):
(I'm not saying that we shouldn't have env-veriable that drives the default behavior, just showing that this is not
I contributed some work-around for the thread-safety problem in |
Provided fix to maintain the feature in 3.5: https://github.com/etcd-io/etcd/pull/12786/commits |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed after 21 days if no further activity occurs. Thank you for your contributions. |
As of etcd 3.4, we support
ETCD_CLIENT_DEBUG
to configure logging level.etcd/clientv3/client.go
Lines 50 to 55 in 2702f9e
We should make this more generic to support other options.
One use case is to configure our auto-sync interval, as it becomes harder to expose individual configuration via flags (e.g.,
kube-apiserver
needs to add a new flag to support this).ref. kubernetes/kubernetes#64742 and kubernetes/kubernetes#64746
/cc @jpbetz @ptabor @xiang90 @jqmichael
@ptabor Seems like we've accidentally removed this code as we upgraded gRPC for etcd 3.5?
etcd/client/v3/doc.go
Lines 102 to 104 in 4d9f1a9
The text was updated successfully, but these errors were encountered: