googleapis / googleapis/google-cloud-java

[sdk-platform-java] Add toString for InstantiatingGrpcChannelProvider

Đang mở
#12,456 1 bình luận 0 reaction 0 người được giao Xem trên GitHub
priority: p2 type: feature request
Ngôn ngữ chính
Java
Star
2.1k
Fork
1.2k
Merge trung bình
1 ngày 23 giờ
Pull request đã merge (30 ngày)
154

Mô tả

**Is your feature request related to a problem? Please describe.**
When debugging customer issues it is very useful to get a copy of the settings that they are using. Unfortunately since InstantiatingGrpcChannelProvider doesnt implement toString, the settings are hidden from view:

```java
BigtableDataSettings{
// ...
stubSettings=EnhancedBigtableStubSettings{
//....
transportChannelProvider=com.google.api.gax.grpc.InstantiatingGrpcChannelProvider@213ceb4e,
credentialsProvider=GoogleCredentialsProvider{
scopesToApply=[
https://www.googleapis.com/auth/bigtable.data,
https://www.googleapis.com/auth/bigtable.data.readonly,
https://www.googleapis.com/auth/cloud-bigtable.data,
https://www.googleapis.com/auth/cloud-bigtable.data.readonly,
https://www.googleapis.com/auth/cloud-platform,
https://www.googleapis.com/auth/cloud-platform.read-only
],
jwtEnabledScopes=[
https://www.googleapis.com/auth/bigtable.data,
https://www.googleapis.com/auth/cloud-bigtable.data,
https://www.googleapis.com/auth/cloud-platform
],
useJwtAccessWithScope=true,
OAuth2Credentials=null
},
headerProvider=com.google.api.gax.rpc.NoHeaderProvider@23c72128,
internalHeaderProvider=FixedHeaderProvider{
headers={
x-goog-api-client=gl-java/17.0.6__Amazon.com-Inc.__Corretto-17.0.6.10.1 gapic/2.31.0 gax/2.39.0 grpc/1.60.0,
user-agent=bigtable-java/2.31.0,
bigtable-features=CAEgATABOAE=
}
},
....
```

**Describe the solution you'd like**
I would like InstantiatingGrpcChannelProvider to override toString and export its internal config (similar to GoogleCredentialsProvider)

**Describe alternatives you've considered**
I dont think there are any alternatives than to implement this

**Additional context**
Any other context or screenshots about the feature request.

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.