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 15, 2024
1 parent b69684b commit 02051b3
Showing 1 changed file with 1 addition and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,6 @@ public class ApiClientHeaderProvider implements HeaderProvider, Serializable {
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 static final String protobufVersionStorageAppendage =
"--" + PROTOBUF_HEADER_VERSION_KEY + "-" + GaxProperties.getProtobufVersion();
private static String tokensToAppendProfobufTo = "";
Expand All @@ -54,8 +52,7 @@ public class ApiClientHeaderProvider implements HeaderProvider, Serializable {

protected ApiClientHeaderProvider(Builder builder) {
ImmutableMap.Builder<String, String> headersBuilder = ImmutableMap.builder();
tokensToAppendProfobufTo =
"(" + GCCL_HEADER_VERSION_KEY + "|" + GAPIC_HEADER_VERSION_KEY + ").*";
tokensToAppendProfobufTo = "(gccl|gapic).*";

if (builder.getApiClientHeaderKey() != null) {
StringBuilder apiClientHeaderValue = new StringBuilder();
Expand Down

0 comments on commit 02051b3

Please sign in to comment.