Skip to content

Commit

Permalink
feat(gax): add protobuf version to headers to track
Browse files Browse the repository at this point in the history
  • Loading branch information
ldetmer committed Sep 13, 2024
1 parent 0037a0a commit ea7e7ec
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -40,11 +40,11 @@
*/
public class ApiClientHeaderProvider implements HeaderProvider, Serializable {
private static final long serialVersionUID = -8876627296793342119L;
private static final String GCCL_HEADER_VERSION_KEY = "gccl";
static final String QUOTA_PROJECT_ID_HEADER_KEY = "x-goog-user-project";
static final String PROTOBUF_HEADER_VERSION_KEY = "protobuf";
public static final String API_VERSION_HEADER_KEY = "x-goog-api-version";
public static final String GAPIC_HEADER_VERSION_KEY = "gapic";
public static final String GCCL_HEADER_VERSION_KEY = "gccl";

private final Map<String, String> headers;

Expand Down Expand Up @@ -182,8 +182,8 @@ public Builder setGeneratedLibToken(String name, String version) {
}

private String getProtobufVersionToAppend() {
// TODO(b:/366417603): appending protobuf version to gapic column is a temporary fix while
// waiting for dedicated field to be added
// TODO(b:/366417603): appending protobuf version to existing client library column is a temporary fix while
// waiting for dedicated field to be added in concord
return "--" + PROTOBUF_HEADER_VERSION_KEY + "-" + GaxProperties.getProtobufVersion();
}

Expand Down

0 comments on commit ea7e7ec

Please sign in to comment.