File tree Expand file tree Collapse file tree 1 file changed +8
-3
lines changed
google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1 Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Original file line number Diff line number Diff line change 19
19
import com .google .api .gax .batching .FlowController ;
20
20
import com .google .api .gax .core .CredentialsProvider ;
21
21
import com .google .api .gax .core .ExecutorProvider ;
22
+ import com .google .api .gax .core .GaxProperties ;
22
23
import com .google .api .gax .retrying .RetrySettings ;
23
24
import com .google .api .gax .rpc .TransportChannelProvider ;
24
25
import com .google .auth .Credentials ;
@@ -824,10 +825,14 @@ public StreamWriter build() throws IOException {
824
825
}
825
826
826
827
String getFullTraceId () {
827
- if (traceId == null ) {
828
- return clientId ;
828
+ String clientWithVersion =
829
+ GaxProperties .getLibraryVersion (StreamWriter .class ).isEmpty ()
830
+ ? clientId
831
+ : clientId + ":" + GaxProperties .getLibraryVersion (StreamWriter .class );
832
+ if (traceId == null || traceId .isEmpty ()) {
833
+ return clientWithVersion ;
829
834
} else {
830
- return clientId + " " + traceId ;
835
+ return clientWithVersion + " " + traceId ;
831
836
}
832
837
}
833
838
}
You can’t perform that action at this time.
0 commit comments