Skip to content
This repository was archived by the owner on May 14, 2026. It is now read-only.
Merged
Prev Previous commit
Next Next commit
address feedback.
  • Loading branch information
zhumin8 committed Oct 4, 2024
commit 6e60633f4c9faa5176afbad0750e1115bbe63e6d
Original file line number Diff line number Diff line change
Expand Up @@ -348,6 +348,11 @@ private static Map<String, String> getHeaders(StubSettings settings, Credentials
effectiveHeaders.putAll(userHeaders);
effectiveHeaders.putAll(conflictResolution);

return appendCredentialTypeToHeaderIfPresent(effectiveHeaders, credentials);
}

private static Map<String, String> appendCredentialTypeToHeaderIfPresent(
Map<String, String> effectiveHeaders, Credentials credentials) {
CredentialTypeForMetrics credentialTypeForMetrics =

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: extract this to a private method for better readability.

credentials == null
? CredentialTypeForMetrics.DO_NOT_SEND
Expand Down